Struct gimli::read::AbbreviationsCache
source · pub struct AbbreviationsCache { /* private fields */ }
Expand description
A cache of previously parsed Abbreviations
.
Currently this only caches the abbreviations for offset 0, since this is a common case in which abbreviations are reused. This strategy may change in future if there is sufficient need.
Implementations§
source§impl AbbreviationsCache
impl AbbreviationsCache
sourcepub fn get<R: Reader>(
&self,
debug_abbrev: &DebugAbbrev<R>,
offset: DebugAbbrevOffset<R::Offset>
) -> Result<Arc<Abbreviations>>
pub fn get<R: Reader>( &self, debug_abbrev: &DebugAbbrev<R>, offset: DebugAbbrevOffset<R::Offset> ) -> Result<Arc<Abbreviations>>
Parse the abbreviations at the given offset.
This uses or updates the cache as required.
Trait Implementations§
source§impl Debug for AbbreviationsCache
impl Debug for AbbreviationsCache
source§impl Default for AbbreviationsCache
impl Default for AbbreviationsCache
source§fn default() -> AbbreviationsCache
fn default() -> AbbreviationsCache
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for AbbreviationsCache
impl Send for AbbreviationsCache
impl Sync for AbbreviationsCache
impl Unpin for AbbreviationsCache
impl UnwindSafe for AbbreviationsCache
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