Struct gimli::write::CommonInformationEntry
source · [−]pub struct CommonInformationEntry {
pub personality: Option<(DwEhPe, Address)>,
pub lsda_encoding: Option<DwEhPe>,
pub fde_address_encoding: DwEhPe,
pub signal_trampoline: bool,
/* private fields */
}
Expand description
A common information entry. This contains information that is shared between FDEs.
Fields
personality: Option<(DwEhPe, Address)>
The address of the personality function and its encoding.
lsda_encoding: Option<DwEhPe>
The encoding to use for the LSDA address in FDEs.
If set then all FDEs which use this CIE must have a LSDA address.
fde_address_encoding: DwEhPe
The encoding to use for addresses in FDEs.
signal_trampoline: bool
True for signal trampolines.
Implementations
sourceimpl CommonInformationEntry
impl CommonInformationEntry
sourcepub fn new(
encoding: Encoding,
code_alignment_factor: u8,
data_alignment_factor: i8,
return_address_register: Register
) -> Self
pub fn new(
encoding: Encoding,
code_alignment_factor: u8,
data_alignment_factor: i8,
return_address_register: Register
) -> Self
Create a new common information entry.
The encoding version must be a CFI version, not a DWARF version.
sourcepub fn add_instruction(&mut self, instruction: CallFrameInstruction)
pub fn add_instruction(&mut self, instruction: CallFrameInstruction)
Add an initial instruction.
Trait Implementations
sourceimpl Clone for CommonInformationEntry
impl Clone for CommonInformationEntry
sourcefn clone(&self) -> CommonInformationEntry
fn clone(&self) -> CommonInformationEntry
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for CommonInformationEntry
impl Debug for CommonInformationEntry
sourceimpl Hash for CommonInformationEntry
impl Hash for CommonInformationEntry
sourceimpl PartialEq<CommonInformationEntry> for CommonInformationEntry
impl PartialEq<CommonInformationEntry> for CommonInformationEntry
sourcefn eq(&self, other: &CommonInformationEntry) -> bool
fn eq(&self, other: &CommonInformationEntry) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &CommonInformationEntry) -> bool
fn ne(&self, other: &CommonInformationEntry) -> bool
This method tests for !=
.
impl Eq for CommonInformationEntry
impl StructuralEq for CommonInformationEntry
impl StructuralPartialEq for CommonInformationEntry
Auto Trait Implementations
impl RefUnwindSafe for CommonInformationEntry
impl Send for CommonInformationEntry
impl Sync for CommonInformationEntry
impl Unpin for CommonInformationEntry
impl UnwindSafe for CommonInformationEntry
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more