pulley_interpreter::decode

Trait Decode

Source
pub trait Decode: Sized {
    // Required method
    fn decode<T>(bytecode: &mut T) -> Result<Self, T::Error>
       where T: BytecodeStream;
}
Available on crate feature decode only.
Expand description

Anything that can be decoded from a bytecode stream, e.g. opcodes, immediates, registers, etc…

Required Methods§

Source

fn decode<T>(bytecode: &mut T) -> Result<Self, T::Error>
where T: BytecodeStream,

Decode this type from the given bytecode stream.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl Decode for i8

Source§

fn decode<T>(bytecode: &mut T) -> Result<Self, T::Error>
where T: BytecodeStream,

Source§

impl Decode for i16

Source§

fn decode<T>(bytecode: &mut T) -> Result<Self, T::Error>
where T: BytecodeStream,

Source§

impl Decode for i32

Source§

fn decode<T>(bytecode: &mut T) -> Result<Self, T::Error>
where T: BytecodeStream,

Source§

impl Decode for i64

Source§

fn decode<T>(bytecode: &mut T) -> Result<Self, T::Error>
where T: BytecodeStream,

Source§

impl Decode for u8

Source§

fn decode<T>(bytecode: &mut T) -> Result<Self, T::Error>
where T: BytecodeStream,

Source§

impl Decode for u16

Source§

fn decode<T>(bytecode: &mut T) -> Result<Self, T::Error>
where T: BytecodeStream,

Source§

impl Decode for u32

Source§

fn decode<T>(bytecode: &mut T) -> Result<Self, T::Error>
where T: BytecodeStream,

Source§

impl Decode for u64

Source§

fn decode<T>(bytecode: &mut T) -> Result<Self, T::Error>
where T: BytecodeStream,

Source§

impl<S: Decode + ScalarBitSetStorage> Decode for ScalarBitSet<S>

Source§

fn decode<T>(bytecode: &mut T) -> Result<Self, T::Error>
where T: BytecodeStream,

Implementors§