Struct miden_core::Kernel
source · pub struct Kernel(_);
Expand description
A list of procedure hashes defining a VM kernel.
The internally-stored list always has a consistent order, regardless of the order of procedure list used to instantiate a kernel.
Implementations
sourceimpl Kernel
impl Kernel
sourcepub fn new(proc_hashes: &[Digest]) -> Self
pub fn new(proc_hashes: &[Digest]) -> Self
Returns a new Kernel instantiated with the specified procedure hashes.
sourcepub fn contains_proc(&self, proc_hash: Digest) -> bool
pub fn contains_proc(&self, proc_hash: Digest) -> bool
Returns true if a procedure with the specified hash belongs to this kernel.
sourcepub fn proc_hashes(&self) -> &[Digest]
pub fn proc_hashes(&self) -> &[Digest]
Returns a list of procedure hashes contained in this kernel.
Trait Implementations
impl Eq for Kernel
impl StructuralEq for Kernel
impl StructuralPartialEq for Kernel
Auto Trait Implementations
impl RefUnwindSafe for Kernel
impl Send for Kernel
impl Sync for Kernel
impl Unpin for Kernel
impl UnwindSafe for Kernel
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more