pub enum Instruction {
Regular(RegularInstruction),
Type(TypeInstruction),
}Variants§
Regular(RegularInstruction)
Type(TypeInstruction)
Implementations§
Source§impl Instruction
impl Instruction
pub fn get_next_expected_instructions(&self) -> NextExpectedInstructions
pub fn metadata_string(&self) -> Option<String>
Trait Implementations§
Source§impl BinWrite for Instruction
impl BinWrite for Instruction
Source§fn write_options<W: Write + Seek>(
&self,
writer: &mut W,
endian: Endian,
_: Self::Args<'_>,
) -> BinResult<()>
fn write_options<W: Write + Seek>( &self, writer: &mut W, endian: Endian, _: Self::Args<'_>, ) -> BinResult<()>
Source§fn write<W>(&self, writer: &mut W) -> Result<(), Error>
fn write<W>(&self, writer: &mut W) -> Result<(), Error>
Write
Self to the writer using default arguments. Read moreSource§fn write_be<W>(&self, writer: &mut W) -> Result<(), Error>
fn write_be<W>(&self, writer: &mut W) -> Result<(), Error>
Write
Self to the writer assuming big-endian byte order. Read moreSource§fn write_le<W>(&self, writer: &mut W) -> Result<(), Error>
fn write_le<W>(&self, writer: &mut W) -> Result<(), Error>
Write
Self to the writer assuming little-endian byte order. Read moreSource§fn write_ne<W>(&self, writer: &mut W) -> Result<(), Error>
fn write_ne<W>(&self, writer: &mut W) -> Result<(), Error>
Write
Self to the writer assuming native-endian byte order. Read moreSource§fn write_args<W>(
&self,
writer: &mut W,
args: Self::Args<'_>,
) -> Result<(), Error>
fn write_args<W>( &self, writer: &mut W, args: Self::Args<'_>, ) -> Result<(), Error>
Write
Self to the writer using the given arguments. Read moreSource§fn write_be_args<W>(
&self,
writer: &mut W,
args: Self::Args<'_>,
) -> Result<(), Error>
fn write_be_args<W>( &self, writer: &mut W, args: Self::Args<'_>, ) -> Result<(), Error>
Write
Self to the writer, assuming big-endian byte order, using the
given arguments. Read moreSource§impl Clone for Instruction
impl Clone for Instruction
Source§impl Debug for Instruction
impl Debug for Instruction
Source§impl Display for Instruction
impl Display for Instruction
Source§impl From<Instruction> for BytecodeItem
impl From<Instruction> for BytecodeItem
Source§fn from(instruction: Instruction) -> Self
fn from(instruction: Instruction) -> Self
Converts to this type from the input type.
Source§impl From<Instruction> for InstructionInput
impl From<Instruction> for InstructionInput
Source§fn from(instruction: Instruction) -> Self
fn from(instruction: Instruction) -> Self
Converts to this type from the input type.
Source§impl From<Instruction> for InstructionTree<InstructionWithSpan>
impl From<Instruction> for InstructionTree<InstructionWithSpan>
Source§fn from(instruction: Instruction) -> Self
fn from(instruction: Instruction) -> Self
Converts to this type from the input type.
Source§impl From<RegularInstruction> for Instruction
impl From<RegularInstruction> for Instruction
Source§fn from(instruction: RegularInstruction) -> Self
fn from(instruction: RegularInstruction) -> Self
Converts to this type from the input type.
Source§impl From<TypeInstruction> for Instruction
impl From<TypeInstruction> for Instruction
Source§fn from(instruction: TypeInstruction) -> Self
fn from(instruction: TypeInstruction) -> Self
Converts to this type from the input type.
Source§impl PartialEq for Instruction
impl PartialEq for Instruction
Source§impl Serializable for Instruction
impl Serializable for Instruction
Source§impl Serializable for &Instruction
impl Serializable for &Instruction
Source§impl Serialize for Instruction
impl Serialize for Instruction
impl StructuralPartialEq for Instruction
Source§impl WriteEndian for Instruction
impl WriteEndian for Instruction
Source§const ENDIAN: EndianKind
const ENDIAN: EndianKind
The endianness of the type.
Auto Trait Implementations§
impl Forget for Instruction
impl Freeze for Instruction
impl Move for Instruction
impl RefUnwindSafe for Instruction
impl Send for Instruction
impl Sync for Instruction
impl Unpin for Instruction
impl UnsafeUnpin for Instruction
impl UnwindSafe for Instruction
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> CustomError for T
impl<T> CustomError for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Serialize for T
impl<T> Serialize for T
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<(), Error>
fn do_erased_serialize( &self, serializer: &mut dyn Serializer, ) -> Result<(), ErrorImpl>
Source§impl<T, U> TypeSubset<U> for Twhere
U: TypeSuperset<T>,
impl<T, U> TypeSubset<U> for Twhere
U: TypeSuperset<T>,
Source§fn is_subset_of(&self, other: &U) -> bool
fn is_subset_of(&self, other: &U) -> bool
Returns whether self is a subset of type