Struct alure::Lib [−][src]
pub struct Lib<E = NOp> where
E: InstructionSet, { /* fields omitted */ }
Expand description
AluVM executable code library
Implementations
pub fn with<I>(code: I) -> Result<Lib<E>, EncodeError> where
I: IntoIterator,
<I as IntoIterator>::Item: InstructionSet,
[src]
pub fn with<I>(code: I) -> Result<Lib<E>, EncodeError> where
I: IntoIterator,
<I as IntoIterator>::Item: InstructionSet,
[src]Constructs library for the provided instructions by encoding them into bytecode
Returns hash identifier LibHash
, representing the library in a
unique way.
Lib hash is computed as SHA256 tagged hash of the serialized library bytecode.
Calculates length of bytecode encoding in bytes
Returns bytecode reference
Trait Implementations
Auto Trait Implementations
impl<E> RefUnwindSafe for Lib<E> where
E: RefUnwindSafe,
impl<E> UnwindSafe for Lib<E> where
E: UnwindSafe,