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§

Create an empty abbreviations cache.

Parse the abbreviations at the given offset.

This uses or updates the cache as required.

Trait Implementations§

Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.