pub struct CompactCfiRegister(/* private fields */);
Expand description
A register for a CompactCfiOp
, as used by Compact Unwinding.
You should just treat this opaquely and use its methods to make sense of it.
Implementations§
source§impl CompactCfiRegister
impl CompactCfiRegister
sourcepub fn name(&self, iter: &CompactUnwindInfoIter<'_>) -> Option<&'static str>
pub fn name(&self, iter: &CompactUnwindInfoIter<'_>) -> Option<&'static str>
The name of this register that cfi wants.
sourcepub fn cfa() -> CompactCfiRegister
pub fn cfa() -> CompactCfiRegister
Gets the CFA register (Canonical Frame Address) – the frame pointer (e.g. rbp)
sourcepub fn frame_pointer() -> CompactCfiRegister
pub fn frame_pointer() -> CompactCfiRegister
Gets the register for the frame pointer (e.g. rbp).
sourcepub fn instruction_pointer() -> CompactCfiRegister
pub fn instruction_pointer() -> CompactCfiRegister
Gets the register for the instruction pointer (e.g. rip).
sourcepub fn stack_pointer() -> CompactCfiRegister
pub fn stack_pointer() -> CompactCfiRegister
Gets the register for the stack pointer (e.g. rsp).
sourcepub fn link_register() -> CompactCfiRegister
pub fn link_register() -> CompactCfiRegister
Get the ARM64 link register (x30).
Trait Implementations§
source§impl Clone for CompactCfiRegister
impl Clone for CompactCfiRegister
source§fn clone(&self) -> CompactCfiRegister
fn clone(&self) -> CompactCfiRegister
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CompactCfiRegister
impl Debug for CompactCfiRegister
source§impl PartialEq for CompactCfiRegister
impl PartialEq for CompactCfiRegister
source§fn eq(&self, other: &CompactCfiRegister) -> bool
fn eq(&self, other: &CompactCfiRegister) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for CompactCfiRegister
impl Eq for CompactCfiRegister
impl StructuralEq for CompactCfiRegister
impl StructuralPartialEq for CompactCfiRegister
Auto Trait Implementations§
impl RefUnwindSafe for CompactCfiRegister
impl Send for CompactCfiRegister
impl Sync for CompactCfiRegister
impl Unpin for CompactCfiRegister
impl UnwindSafe for CompactCfiRegister
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<I, T> ExtractContext<I, ()> for T
impl<I, T> ExtractContext<I, ()> for T
§fn extract_context(self, _original_input: I)
fn extract_context(self, _original_input: I)
Given the context attached to a nom error, and given the original
input to the nom parser, extract more the useful context information. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<I> RecreateContext<I> for I
impl<I> RecreateContext<I> for I
§fn recreate_context(_original_input: I, tail: I) -> I
fn recreate_context(_original_input: I, tail: I) -> I
Given the original input, as well as the context reported by nom,
recreate a context in the original string where the error occurred. Read more