Struct symtern::adaptors::Luma [] [src]

pub struct Luma<W> { /* fields omitted */ }

Interner adaptor that utilizes interior mutability to implement the Intern trait.

See the module-level documentation for more information.

Methods

impl<W> Luma<W>
[src]

Create a new, empty Luma instance.

Trait Implementations

impl<W: Default> Default for Luma<W>
[src]

Returns the "default value" for a type. Read more

impl<W> From<W> for Luma<W>
[src]

Performs the conversion.

impl<'a, W, BS, BI: ?Sized> Intern for &'a Luma<W> where &'b mut W: Intern<Symbol=BS, Input=BI>, BS: Symbol + Symbol
[src]

Type of value accepted by intern.

Type used to represent interned values.

Fetch the symbol that corresponds to the given value. If the value does not map to any existing symbol, create and return a new one. This method may return an error if the interner encounters any error while storing the value. Read more

impl<'a, W, BI, BO: ?Sized> Resolve for &'a Luma<W> where &'b W: Resolve<Input=BI, Output=&'b BO>, BI: Symbol + Symbol, BO: 'a
[src]

Type used to represent interned values.

Type stored by the interner and made available with resolve.

Look up and return a reference to the value represented by a symbol, or an error if the symbol was not found. Read more

impl<W> Len for Luma<W> where W: Len
[src]

Fetch the number of values contained in the interner.

Check if the number of interned symbols has reached the maximum allowed. Read more

Check if the interner is "empty", i.e. has zero stored values.