#[repr(C)]pub struct TrapManifest<'a> {
pub traps: &'a [TrapSite],
}
Expand description
A collection of trap sites, typically obtained from a
single function (see [FunctionSpec::traps
])
Fields§
§traps: &'a [TrapSite]
Implementations§
Source§impl<'a> TrapManifest<'a>
impl<'a> TrapManifest<'a>
pub fn new(traps: &'a [TrapSite]) -> TrapManifest<'a>
pub fn lookup_addr(&self, addr: u32) -> Option<TrapCode>
Trait Implementations§
Source§impl<'a> Clone for TrapManifest<'a>
impl<'a> Clone for TrapManifest<'a>
Source§fn clone(&self) -> TrapManifest<'a>
fn clone(&self) -> TrapManifest<'a>
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 moreAuto Trait Implementations§
impl<'a> Freeze for TrapManifest<'a>
impl<'a> RefUnwindSafe for TrapManifest<'a>
impl<'a> Send for TrapManifest<'a>
impl<'a> Sync for TrapManifest<'a>
impl<'a> Unpin for TrapManifest<'a>
impl<'a> UnwindSafe for TrapManifest<'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