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