Skip to main content

StackMapFrame

Enum StackMapFrame 

Source
pub enum StackMapFrame {
    Same {
        frame_type: u8,
    },
    SameLocalsOneStack {
        frame_type: u8,
        stack: VerificationType,
    },
    SameLocalsOneStackExtended {
        offset_delta: u16,
        stack: VerificationType,
    },
    Chop {
        frame_type: u8,
        offset_delta: u16,
    },
    SameExtended {
        offset_delta: u16,
    },
    Append {
        frame_type: u8,
        offset_delta: u16,
        locals: Vec<VerificationType>,
    },
    Full {
        offset_delta: u16,
        locals: Vec<VerificationType>,
        stack: Vec<VerificationType>,
    },
}
Expand description

One compressed stack-map frame, retained without expansion.

Variants§

§

Same

Tags 0 through 63.

Fields

§frame_type: u8

Encoded frame tag, which is also the offset delta.

§

SameLocalsOneStack

Tags 64 through 127.

Fields

§frame_type: u8

Encoded frame tag.

§stack: VerificationType

Sole stack entry.

§

SameLocalsOneStackExtended

Tag 247.

Fields

§offset_delta: u16

Explicit offset delta.

§stack: VerificationType

Sole stack entry.

§

Chop

Tags 248 through 250.

Fields

§frame_type: u8

Encoded frame tag, retaining the exact number of omitted locals.

§offset_delta: u16

Explicit offset delta.

§

SameExtended

Tag 251.

Fields

§offset_delta: u16

Explicit offset delta.

§

Append

Tags 252 through 254.

Fields

§frame_type: u8

Encoded frame tag, retaining the exact number of appended locals.

§offset_delta: u16

Explicit offset delta.

§locals: Vec<VerificationType>

Appended locals in encoded order.

§

Full

Tag 255.

Fields

§offset_delta: u16

Explicit offset delta.

§locals: Vec<VerificationType>

Complete locals in encoded order.

§stack: Vec<VerificationType>

Complete stack in encoded order.

Trait Implementations§

Source§

impl Clone for StackMapFrame

Source§

fn clone(&self) -> StackMapFrame

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for StackMapFrame

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for StackMapFrame

Source§

impl PartialEq for StackMapFrame

Source§

fn eq(&self, other: &StackMapFrame) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for StackMapFrame

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.