Struct Mapping
pub(in ::backtrace_rs::symbolize::gimli) struct Mapping { pub(in ::backtrace_rs::symbolize::gimli) cx: Context<'static>, pub(in ::backtrace_rs::symbolize::gimli) _map: Mmap, pub(in ::backtrace_rs::symbolize::gimli) stash: Stash }
Fields
cx: Context<'static>_map: Mmapstash: Stash
Implementations
impl Mapping
fn new(path: &Path) -> Option<Mapping>fn new_debug(original_path: &Path, path: PathBuf, crc: Option<u32>) -> Option<Mapping>Load debuginfo from an external debug file.
fn load_dwarf_package<'data>(path: &Path, stash: &'data Stash) -> Option<Object<'data>>Try to locate a DWARF package file.
impl Mapping
fn mk<F>(data: Mmap, mk: F) -> Option<Mapping> where F: for<'a> FnOnce(&'a [u8], &'a Stash) -> Option<Context<'a>>,Creates a
Mappingby ensuring that thedataspecified is used to create aContextand it can only borrow from that or theStashof decompressed sections or auxiliary data.fn mk_or_other<F>(data: Mmap, mk: F) -> Option<Mapping> where F: for<'a> FnOnce(&'a [u8], &'a Stash) -> Option<Either<Mapping, Context<'a>>>,Creates a
Mappingfromdata, or if the closure decides to, returns a different mapping.
Auto Trait Implementations
impl !Freeze for Mapping
impl !RefUnwindSafe for Mapping
impl !Send for Mapping
impl !Sync for Mapping
impl Unpin for Mapping
impl UnsafeUnpin for Mapping
impl UnwindSafe for Mapping
Blanket Implementations
impl<T> Any for Mapping
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for Mapping
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for Mapping
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for Mapping
fn from(t: T) -> TReturns the argument unchanged.
impl<T> SizeHint for Mapping
where
T: ?Sized,
fn lower_bound(&self) -> usizefn upper_bound(&self) -> Option<usize>
impl<T> SizedTypeProperties for Mapping
impl<T, U> Into<U> for Mapping
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for Mapping
where
U: Into<T>,
type Error = Infallible;fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto<U> for Mapping
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>