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

Method has_const

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

Source from the content-addressed store, hash-verified

266
267 pub fn get_const(&mut self, id: &KId<M>) -> Result<KConst<M>, TcError<M>> {
268 self
269 .try_get_const(id)?
270 .ok_or_else(|| TcError::UnknownConst(id.addr.clone()))
271 }
272
273 pub fn has_const(&mut self, id: &KId<M>) -> Result<bool, TcError<M>> {

Callers 1

Calls 1

try_get_constMethod · 0.45

Tested by

no test coverage detected