MCPcopy Create free account
hub / github.com/argumentcomputer/ix / get_const

Method get_const

crates/kernel/src/tc.rs:262–266  ·  view source on GitHub ↗
(&mut self, id: &KId<M>)

Source from the content-addressed store, hash-verified

260 }
261
262 pub fn get_const(&mut self, id: &KId<M>) -> Result<KConst<M>, TcError<M>> {
263 self
264 .try_get_const(id)?
265 .ok_or_else(|| TcError::UnknownConst(id.addr.clone()))
266 }
267
268 pub fn has_const(&mut self, id: &KId<M>) -> Result<bool, TcError<M>> {
269 Ok(self.try_get_const(id)?.is_some())

Callers 15

check_constMethod · 0.45
classify_blockMethod · 0.45
check_block_bodyMethod · 0.45
try_iota_with_flagsMethod · 0.45
ingress_muts_blockFunction · 0.45
ingress_compiled_namesFunction · 0.45
ixon_ingress_innerFunction · 0.45
closure_addrsFunction · 0.45

Calls 2

try_get_constMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected