pub struct ArrayUnit { /* private fields */ }
Expand description
Unit stored as array of instructions.
Trait Implementations§
source§impl<'de> Deserialize<'de> for ArrayUnit
impl<'de> Deserialize<'de> for ArrayUnit
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl UnitStorage for ArrayUnit
impl UnitStorage for ArrayUnit
§type Iter<'this> = Enumerate<Copied<Iter<'this, Inst>>>
type Iter<'this> = Enumerate<Copied<Iter<'this, Inst>>>
Iterator over instructions and their corresponding instruction offsets.
source§fn end(&self) -> usize
fn end(&self) -> usize
Size of unit storage. This can be seen as the instruction pointer which
is just beyond the last instruction.
impl UnitEncoder for ArrayUnit
Auto Trait Implementations§
impl RefUnwindSafe for ArrayUnit
impl Send for ArrayUnit
impl Sync for ArrayUnit
impl Unpin for ArrayUnit
impl UnwindSafe for ArrayUnit
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