pub struct Packed<'a> { /* private fields */ }
Expand description

This structure represents a packed AArch64 exception entry.

An excepted entry can be packed if the unwind data fit in 30 bits

Reference: https://learn.microsoft.com/en-us/cpp/build/arm64-exception-handling?view=msvc-170#packed-unwind-data

Implementations§

§

impl Packed<'_>

pub fn frame_size(&self) -> u8

Size of the allocated stack

pub fn reg_I(&self) -> u8

Number of non-volatile INT registers (x19-x28) saved in the canonical stack location.

pub fn reg_F(&self) -> u8

Number of non-volatile FP registers (d8-d15) saved in the canonical stack location

pub fn H(&self) -> u8

1-bit flag indicating whether the function homes the integer parameter registers (x0-x7) by storing them at the very start of the function. (0 = doesn’t home registers, 1 = homes registers).

pub fn CR(&self) -> u8

Flag indicating whether the function includes extra instructions to set up a frame chain and return link.

Trait Implementations§

§

impl Debug for Packed<'_>

§

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

Formats the value using the given formatter. Read more
§

impl ExceptionInfo for Packed<'_>

§

fn rva_start(&self) -> u32

Function start address

Auto Trait Implementations§

§

impl<'a> !RefUnwindSafe for Packed<'a>

§

impl<'a> !Send for Packed<'a>

§

impl<'a> !Sync for Packed<'a>

§

impl<'a> Unpin for Packed<'a>

§

impl<'a> !UnwindSafe for Packed<'a>

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. 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 Twhere 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, U> TryFrom<U> for Twhere U: Into<T>,

§

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 Twhere U: TryFrom<T>,

§

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.