Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dfinity/ic
/ functions
Functions
45,639 in github.com/dfinity/ic
⨍
Functions
45,639
◇
Types & classes
9,372
↳
Endpoints
8
↓ 301 callers
Method
take_tip
(&self)
rs/state_manager/src/lib.rs:2846
↓ 299 callers
Method
as_mut
(&mut self)
rs/types/types/src/consensus/idkg.rs:465
↓ 298 callers
Method
as_slice
Returns a byte slice view of the memory mapping.
rs/sys/src/mmap.rs:86
↓ 295 callers
Method
values
Returns a slice of values contained in this map.
rs/crypto/tree_hash/src/flat_map.rs:186
↓ 292 callers
Method
insert
(&mut self, blob: B, metadata: Metadata)
rs/cross-chain/blob_store/src/storage.rs:88
↓ 287 callers
Method
take
(&mut self)
rs/types/cycles/src/cycles.rs:66
↓ 284 callers
Function
with_test_pool_config
Creates a new ArtifactPoolConfig, based on the default, for tests. It removes the persistent pool directory afterwards.
rs/test_utilities/src/artifact_pool_config.rs:8
↓ 283 callers
Method
ok
(ticket: Option<Ticket>)
rs/sns/swap/src/swap.rs:3627
↓ 277 callers
Method
bytes
Returns the bytes in the result.
rs/types/types/src/ingress.rs:193
↓ 272 callers
Method
to_vec
(&self)
rs/nns/governance/protobuf_generator/src/lib.rs:34
↓ 271 callers
Method
as_str
Returns the name of this status as specified in the interface spec: `<https://internetcomputer.org/docs/current/references/ic-interface-spec#state-tre
rs/types/types/src/ingress.rs:93
↓ 269 callers
Method
find
Find and return the first log line that satisfies the given predicate
rs/tests/driver/src/util.rs:1618
↓ 269 callers
Method
reply
(mut self)
rs/universal_canister/lib/src/lib.rs:154
↓ 262 callers
Method
get_mut
(&self)
rs/consensus/mocks/src/lib.rs:62
↓ 261 callers
Method
into_iter
(self)
rs/types/types/src/crypto/canister_threshold_sig/idkg.rs:1197
↓ 261 callers
Method
saturating_sub
Saturating `Duration` subtraction from a `Time`. Computes `self - rhs`, returning `Time::from_nanos_since_unix_epoch(0)` if underflow occurs. # Examp
rs/types/types/src/time.rs:206
↓ 260 callers
Method
path
(&self)
rs/prep/src/prep_state_directory.rs:47
↓ 255 callers
Function
all
(c: &mut Criterion)
rs/embedders/benches/heap.rs:322
↓ 255 callers
Function
try_from_option_field
Converts an optional proto field into a Rust type using `From` / `TryFrom`. Returns `Err(ProtoMappingError::MissingField(field))` if the field is `Non
rs/protobuf/src/proxy.rs:207
↓ 251 callers
Method
parse
Parses a Bitcoin address and checks that it belongs to the specified network.
rs/bitcoin/ckbtc/minter/src/address.rs:72
↓ 249 callers
Method
clone
(&self)
rs/ethereum/ledger-suite-orchestrator/src/state/mod.rs:189
↓ 248 callers
Function
len
(p: ValuePredicate)
packages/icrc-ledger-types/src/icrc/generic_value_predicate.rs:348
↓ 245 callers
Method
iter
(&self)
rs/nns/governance/src/subaccount_index.rs:108
↓ 242 callers
Method
append
Appends the given messages to `self`. Returns `Err(InvalidPayload)` if `suffix.messages` is malformed. Returns `Err(InvalidAppend)` and leaves `self`
rs/xnet/payload_builder/src/certified_slice_pool.rs:234
↓ 242 callers
Method
get
(&self)
rs/crypto/test_utils/keygen/src/lib.rs:348
↓ 242 callers
Method
insert
(&mut self, unvalidated_artifact: UnvalidatedArtifact<SignedIngress>)
rs/test_utilities/artifact_pool/src/ingress_pool.rs:54
↓ 241 callers
Method
into_iter
(self)
rs/registry/routing_table/src/lib.rs:574
↓ 240 callers
Method
push
(&mut self, item: RequestOutcome<T, S>)
rs/tests/driver/src/generic_workload_engine/metrics.rs:240
↓ 240 callers
Method
subnet_message
A low-level helper to send subnet messages to the IC management canister. Execution of the message is started immediately after. Check the ingress sta
rs/test_utilities/execution_environment/src/lib.rs:1516
↓ 239 callers
Method
push
Appends the given message to the tail of the stream.
rs/replicated_state/src/metadata_state.rs:1356
↓ 233 callers
Method
iter
Iterates over all stored values in the map. Elements are returned in ascending order of the primary key.
rs/ethereum/cketh/minter/src/map.rs:144
↓ 226 callers
Method
build
(self)
rs/embedders/src/compilation_cache.rs:94
↓ 225 callers
Method
advance_time
Advance time by the given [`Duration`]. Advances the real-world and monotonic clock at the same rate.
rs/test_utilities/time/src/lib.rs:86
↓ 225 callers
Method
create_canister
(&mut self)
rs/execution_environment/src/scheduler/test_utilities.rs:229
↓ 224 callers
Function
deserialize
(d: D)
rs/ledger_suite/icrc1/src/compact_account.rs:73
↓ 224 callers
Method
is_empty
Returns true if the memory region has zero length.
rs/sys/src/mmap.rs:81
↓ 223 callers
Method
insert
Inserts a mapping from the corresponding canister_id_range to the subnet into the routing table. Returns an error if adding a new entry makes the rou
rs/registry/routing_table/src/lib.rs:295
↓ 223 callers
Method
len
Returns the number of `CanisterIdRange` entries.
rs/registry/routing_table/src/lib.rs:189
↓ 221 callers
Method
with_setup
(mut self, setup: F)
rs/tests/driver/src/driver/group.rs:834
↓ 217 callers
Method
clone
(&self)
packages/icrc-ledger-types/src/icrc3/archive.rs:69
↓ 217 callers
Method
subnets
(&self)
rs/tests/driver/src/driver/test_env_api.rs:401
↓ 215 callers
Method
append_and_reply
(mut self)
rs/universal_canister/lib/src/lib.rs:134
↓ 214 callers
Function
decode
Decodes a blob into a type `T`, discarding any possible padding. Returns the decoded type `T`, the bytes count of the blob and the bytes count of the
rs/rust_canisters/messaging_test/src/lib.rs:142
↓ 213 callers
Method
clone
(&self)
rs/monitoring/logger/src/replica_logger.rs:67
↓ 213 callers
Method
len
Returns the size of the queue.
rs/types/types/src/xnet.rs:127
↓ 212 callers
Method
install_canister
( &self, canister_id: &CanisterId, wat: &str, payload: Vec<u8>, )
rs/replica_tests/src/lib.rs:460
↓ 211 callers
Method
maybe_apply_mutation_internal
Checks that invariants would hold after applying mutations, and applies the mutations if they do
rs/registry/canister/src/registry.rs:360
↓ 208 callers
Method
push
Push a new `result` to the cache, evicting LRU entries if needed and updating the metrics.
rs/execution_environment/src/query_handler/query_cache.rs:429
↓ 207 callers
Method
copy_from_slice
(&mut self, offset: usize, slice: &[u8])
rs/replicated_state/src/page_map/page_allocator/mmap.rs:79
↓ 207 callers
Method
execute_from_args
(self)
rs/tests/driver/src/driver/group.rs:1580
↓ 206 callers
Method
commit_and_certify
( &self, mut state: Self::State, scope: CertificationScope, batch_summary: Opt
rs/state_manager/src/lib.rs:3385
↓ 202 callers
Function
write
Writes `content` to the given offset in the stable memory
rs/rust_canisters/dfn_core/src/stable.rs:47
↓ 201 callers
Method
canister_from_wat
Creates a canister and installs the Wasm module given in the textual representation.
rs/test_utilities/execution_environment/src/lib.rs:1194
↓ 201 callers
Method
saturating_add
(self, rhs: Duration)
rs/bitcoin/ckbtc/minter/src/lib.rs:1889
↓ 200 callers
Method
add_subnet
(mut self, subnet: Subnet)
rs/tests/driver/src/driver/ic.rs:92
↓ 200 callers
Method
get
Returns an accumulated digest.
rs/memory_tracker/src/deterministic.rs:122
↓ 200 callers
Method
get
( &self, canister_module: &CanisterModule, )
rs/embedders/src/compilation_cache.rs:143
↓ 198 callers
Method
min
(&self)
rs/types/types/src/lib.rs:283
↓ 198 callers
Method
send_ingress
(&mut self, canister_id: CanisterId, message: TestMessage)
rs/execution_environment/src/scheduler/test_utilities.rs:346
↓ 197 callers
Function
iter
()
rs/crypto/tree_hash/tests/flatmap.rs:176
↓ 196 callers
Method
execute_round
(&mut self, round_type: ExecutionRoundType)
rs/execution_environment/src/scheduler/test_utilities.rs:584
↓ 195 callers
Method
as_slice
(&self)
rs/types/wasm_types/src/lib.rs:43
↓ 194 callers
Method
as_ref
(&self)
rs/registry/canister/src/registry.rs:67
↓ 194 callers
Function
f
(vec: Vec<u8>, max_bytes_to_format: usize)
rs/utils/src/byte_slice_fmt.rs:23
↓ 194 callers
Method
get
cpp/infogetty-cpp/network_info.cc:187
↓ 194 callers
Function
hash
(data: &str)
rs/http_utils/src/file_downloader.rs:578
↓ 192 callers
Method
path
(&self)
rs/ic_os/device/src/device_mapping.rs:184
↓ 191 callers
Method
build
(self)
rs/nns/governance/src/neuron/types.rs:1950
↓ 191 callers
Method
len
Returns the number of entries in this map.
rs/crypto/tree_hash/src/flat_map.rs:197
↓ 190 callers
Method
as_slice
The entire mmap as a slice of bytes.
rs/replicated_state/src/page_map/checkpoint.rs:127
↓ 190 callers
Method
into_iter
(self)
rs/crypto/tree_hash/src/flat_map.rs:240
↓ 188 callers
Method
any
Match all edges at first level and apply the pattern for the subtree they point to.
rs/canonical_state/src/subtree_visitor.rs:37
↓ 187 callers
Method
encode
(&self, buf: &mut B)
rs/registry/proto_data_provider/src/lib.rs:127
↓ 187 callers
Method
insert
(&self, state_machine: Arc<StateMachine>)
rs/state_machine_tests/src/lib.rs:5585
↓ 185 callers
Function
drop
(_: *const ())
rs/rust_canisters/dfn_core/src/api/futures.rs:267
↓ 183 callers
Method
get_principal_id
(&self)
rs/canister_client/sender/src/lib.rs:158
↓ 181 callers
Method
push
(&mut self, hb: &HashedBlock)
rs/rosetta-api/icp/ledger_canister_blocks_synchronizer/src/blocks.rs:1294
↓ 181 callers
Method
update
(&self, payload: P)
rs/tests/driver/src/util.rs:584
↓ 179 callers
Method
get
(&self, msg_id: &StateSyncArtifactId)
rs/state_manager/src/state_sync.rs:207
↓ 179 callers
Method
iter
(&self)
rs/bitcoin/checker/src/state.rs:194
↓ 179 callers
Method
receivers
(&self)
rs/crypto/test_utils/canister_threshold_sigs/src/lib.rs:1664
↓ 178 callers
Method
insert
(self, key: K, value: V)
rs/replicated_state/src/page_map/int_map.rs:388
↓ 175 callers
Method
build
(self)
rs/crypto/internal/crypto_service_provider/src/vault/local_csp_vault/builder/mod.rs:143
↓ 174 callers
Method
body
(&self)
rs/cross-chain/proposal-cli/src/forum/mod.rs:201
↓ 171 callers
Method
execute_message
Executes a pending message of the given canister and bumps state().time().
rs/test_utilities/execution_environment/src/lib.rs:1907
↓ 170 callers
Method
get_ref
`get_ref` returns a reference to the underlying representation of the identifier. ``` use phantom_newtype::Id; struct User {} type UserId = Id<User,
rs/phantom_newtype/src/id.rs:137
↓ 170 callers
Method
push_init_mutate_request
( &mut self, mutate_req: RegistryAtomicMutateRequest, )
rs/registry/canister/src/init.rs:61
↓ 169 callers
Method
build
(self, node_id: u64, registry_version: RegistryVersion)
rs/crypto/test_utils/keygen/src/lib.rs:84
↓ 169 callers
Method
write_all
(&mut self, buf: &[u8])
rs/tests/test_canisters/kv_store/src/chunk.rs:66
↓ 168 callers
Function
make_subnet_record_key
Makes a key for a SubnetRecord registry entry.
rs/registry/keys/src/lib.rs:331
↓ 167 callers
Method
replace
(&self, new_value: VecDeque<T>)
rs/test_utilities/src/ingress_selector.rs:45
↓ 167 callers
Function
trap
(_offset: u32, _size: u32)
rs/rust_canisters/dfn_core/src/api.rs:149
↓ 166 callers
Method
to_u64
(self)
rs/ledger_suite/icrc1/tokens_u64/src/lib.rs:28
↓ 163 callers
Method
iter_mut
Iterates over the priorities, in ascending `CanisterId` order.
rs/replicated_state/src/metadata_state/subnet_schedule.rs:140
↓ 161 callers
Method
get_e8s
Like Tokens::get_e8s.
rs/nervous_system/common/src/lib.rs:226
↓ 161 callers
Method
into_iter
(self)
rs/ethereum/ledger-suite-orchestrator/src/dashboard/mod.rs:74
↓ 161 callers
Function
wat_fn
Create a new WAT function code builder.
rs/test_utilities/execution_environment/src/wat_canister/fn_builder.rs:37
↓ 160 callers
Function
read
Read an input that can be parsed from a string. In contrast to `read_optional`, an empty input will still be parsed and returned as a value of the gen
rs/recovery/src/cli.rs:310
↓ 158 callers
Method
len
(&self)
rs/bitcoin/ckbtc/minter/src/lib.rs:1943
↓ 156 callers
Method
add_argument
(&mut self, argument: impl ToString, value: impl ToString)
rs/recovery/src/admin_helper.rs:342
← previous
next →
101–200 of 45,639, ranked by callers