pub struct EncoderBlock { /* private fields */ }Expand description
Type that represents an encoder block, which is a collection of
Implementations§
Source§impl EncoderBlock
impl EncoderBlock
Sourcepub fn new(instr_blocks: Vec<InstructionBlock>) -> Self
pub fn new(instr_blocks: Vec<InstructionBlock>) -> Self
Creates a new encoder block from a vector of instruction blocks.
Sourcepub fn encode(self) -> Result<Vec<EncoderBlockResult>>
pub fn encode(self) -> Result<Vec<EncoderBlockResult>>
Encodes all instructions in the encoder block.
Trait Implementations§
Source§impl Clone for EncoderBlock
impl Clone for EncoderBlock
Source§fn clone(&self) -> EncoderBlock
fn clone(&self) -> EncoderBlock
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EncoderBlock
impl Debug for EncoderBlock
Source§impl Default for EncoderBlock
impl Default for EncoderBlock
Source§fn default() -> EncoderBlock
fn default() -> EncoderBlock
Returns the “default value” for a type. Read more
impl Eq for EncoderBlock
Source§impl Hash for EncoderBlock
impl Hash for EncoderBlock
Source§impl Ord for EncoderBlock
impl Ord for EncoderBlock
Source§fn cmp(&self, other: &EncoderBlock) -> Ordering
fn cmp(&self, other: &EncoderBlock) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for EncoderBlock
impl PartialEq for EncoderBlock
Source§fn eq(&self, other: &EncoderBlock) -> bool
fn eq(&self, other: &EncoderBlock) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for EncoderBlock
impl PartialOrd for EncoderBlock
impl StructuralPartialEq for EncoderBlock
Auto Trait Implementations§
impl Freeze for EncoderBlock
impl RefUnwindSafe for EncoderBlock
impl Send for EncoderBlock
impl Sync for EncoderBlock
impl Unpin for EncoderBlock
impl UnsafeUnpin for EncoderBlock
impl UnwindSafe for EncoderBlock
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more