Struct symbolic_symcache::SymCache
source · pub struct SymCache<'a> { /* private fields */ }
Expand description
An abstraction around a symbolication cache file.
Implementations
sourceimpl<'a> SymCache<'a>
impl<'a> SymCache<'a>
sourcepub fn parse(byteview: ByteView<'a>) -> Result<Self, SymCacheError>
pub fn parse(byteview: ByteView<'a>) -> Result<Self, SymCacheError>
Load a symcache from a byteview.
sourcepub fn from_object(obj: &Object<'_>) -> Result<Self, SymCacheError>
pub fn from_object(obj: &Object<'_>) -> Result<Self, SymCacheError>
Constructs a symcache from an object.
sourcepub fn to_writer<W: Write>(&self, writer: W) -> Result<(), Error>
pub fn to_writer<W: Write>(&self, writer: W) -> Result<(), Error>
Writes the symcache into a new writer.
sourcepub fn arch(&self) -> Result<Arch, SymCacheError>
pub fn arch(&self) -> Result<Arch, SymCacheError>
The architecture of the symbol file.
sourcepub fn id(&self) -> Result<DebugId, SymCacheError>
pub fn id(&self) -> Result<DebugId, SymCacheError>
The id of the cache file.
sourcepub fn data_source(&self) -> Result<DataSource, SymCacheError>
pub fn data_source(&self) -> Result<DataSource, SymCacheError>
The source of the SymCache
.
sourcepub fn has_line_info(&self) -> Result<bool, SymCacheError>
pub fn has_line_info(&self) -> Result<bool, SymCacheError>
Returns true if line information is included.
sourcepub fn has_file_info(&self) -> Result<bool, SymCacheError>
pub fn has_file_info(&self) -> Result<bool, SymCacheError>
Returns true if file information is included.
sourcepub fn file_format_version(&self) -> Result<u32, SymCacheError>
pub fn file_format_version(&self) -> Result<u32, SymCacheError>
The version of the cache file.
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for SymCache<'a>
impl<'a> Send for SymCache<'a>
impl<'a> Sync for SymCache<'a>
impl<'a> Unpin for SymCache<'a>
impl<'a> UnwindSafe for SymCache<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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