pub struct StackMapFrame<'a> { /* private fields */ }Expand description
A borrowed view of one StackMapTable frame.
Frame offsets are encoded as deltas by the class-file format. Use
Self::offset_delta together with preceding frames to recover an absolute
bytecode offset.
Implementations§
Source§impl<'a> StackMapFrame<'a>
impl<'a> StackMapFrame<'a>
Sourcepub const fn offset_delta(&self) -> u16
pub const fn offset_delta(&self) -> u16
Returns this frame’s encoded offset delta.
Sourcepub const fn kind(&self) -> StackMapFrameKind
pub const fn kind(&self) -> StackMapFrameKind
Returns the frame encoding kind.
Sourcepub fn locals(&self) -> Option<VerificationTypes<'a>>
pub fn locals(&self) -> Option<VerificationTypes<'a>>
Returns the local entries encoded by an append or full frame.
Returns None for same and chop frames, whose locals are inherited from
the preceding frame.
Sourcepub fn stack(&self) -> Option<VerificationTypes<'a>>
pub fn stack(&self) -> Option<VerificationTypes<'a>>
Returns the stack entries encoded by this frame.
Same and chop frames have an empty operand stack, so they return None.
Trait Implementations§
Source§impl<'a> Clone for StackMapFrame<'a>
impl<'a> Clone for StackMapFrame<'a>
Source§fn clone(&self) -> StackMapFrame<'a>
fn clone(&self) -> StackMapFrame<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for StackMapFrame<'a>
Auto Trait Implementations§
impl<'a> Freeze for StackMapFrame<'a>
impl<'a> RefUnwindSafe for StackMapFrame<'a>
impl<'a> Send for StackMapFrame<'a>
impl<'a> Sync for StackMapFrame<'a>
impl<'a> Unpin for StackMapFrame<'a>
impl<'a> UnsafeUnpin for StackMapFrame<'a>
impl<'a> UnwindSafe for StackMapFrame<'a>
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