Struct rune::runtime::unit::ByteCodeUnit
source · pub struct ByteCodeUnit { /* private fields */ }
Expand description
Unit stored as byte code, which is a more compact representation than
ArrayUnit
, but takes more time to execute since it needs to be decoded as
it’s being executed.
Trait Implementations§
source§impl Debug for ByteCodeUnit
impl Debug for ByteCodeUnit
source§impl Default for ByteCodeUnit
impl Default for ByteCodeUnit
source§fn default() -> ByteCodeUnit
fn default() -> ByteCodeUnit
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ByteCodeUnit
impl<'de> Deserialize<'de> for ByteCodeUnit
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 Serialize for ByteCodeUnit
impl Serialize for ByteCodeUnit
source§impl TryClone for ByteCodeUnit
impl TryClone for ByteCodeUnit
source§impl UnitStorage for ByteCodeUnit
impl UnitStorage for ByteCodeUnit
§type Iter<'this> = ByteCodeUnitIter<'this>
type Iter<'this> = ByteCodeUnitIter<'this>
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 ByteCodeUnit
Auto Trait Implementations§
impl RefUnwindSafe for ByteCodeUnit
impl Send for ByteCodeUnit
impl Sync for ByteCodeUnit
impl Unpin for ByteCodeUnit
impl UnwindSafe for ByteCodeUnit
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