Struct alure::Lib [−][src]
pub struct Lib<E = NOp> where
E: InstructionSet, { /* fields omitted */ }
Expand description
AluVM executable code library
Implementations
impl<E> Lib<E> where
E: InstructionSet,
[src]
impl<E> Lib<E> where
E: InstructionSet,
[src]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
pub fn lib_hash(&self) -> LibHash
[src]
pub fn lib_hash(&self) -> LibHash
[src]Returns hash identifier LibHash
, representing the library in a
unique way.
Lib hash is computed as SHA256 tagged hash of the serialized library bytecode.
pub fn byte_count(&self) -> u16
[src]
pub fn byte_count(&self) -> u16
[src]Calculates length of bytecode encoding in bytes
Trait Implementations
impl<E: Debug> Debug for Lib<E> where
E: InstructionSet,
[src]
impl<E: Debug> Debug for Lib<E> where
E: InstructionSet,
[src]Auto Trait Implementations
impl<E> RefUnwindSafe for Lib<E> where
E: RefUnwindSafe,
E: RefUnwindSafe,
impl<E> Send for Lib<E> where
E: Send,
E: Send,
impl<E> Sync for Lib<E> where
E: Sync,
E: Sync,
impl<E> Unpin for Lib<E> where
E: Unpin,
E: Unpin,
impl<E> UnwindSafe for Lib<E> where
E: UnwindSafe,
E: UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more