pub struct Format {
pub address_size: u8,
pub unwinder: Unwinder,
}Expand description
The target properties needed to parse or write an LSDA.
Fields§
§address_size: u8The size of a pointer in bytes, used by DW_EH_PE_absptr and
DW_EH_PE_aligned: 4 or 8 (2 is also accepted).
unwinder: UnwinderThe unwinder variant.
Implementations§
Source§impl Format
impl Format
Sourcepub fn new(address_size: u8) -> Self
pub fn new(address_size: u8) -> Self
Return the format for the DWARF unwinder with the given address size.
Sourcepub fn arm_ehabi() -> Self
pub fn arm_ehabi() -> Self
Return the format of the Arm EHABI: 4-byte addresses and
Unwinder::ArmEhabi.
Sourcepub fn with_unwinder(self, unwinder: Unwinder) -> Self
pub fn with_unwinder(self, unwinder: Unwinder) -> Self
Return a copy with the unwinder set to unwinder.
Trait Implementations§
impl Copy for Format
impl Eq for Format
impl StructuralPartialEq for Format
Auto Trait Implementations§
impl Freeze for Format
impl RefUnwindSafe for Format
impl Send for Format
impl Sync for Format
impl Unpin for Format
impl UnsafeUnpin for Format
impl UnwindSafe for Format
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