[][src]Struct string_interner::backend::StringBackend

pub struct StringBackend<S> { /* fields omitted */ }

An interner backend that appends all interned strings together.

Note

Implementation inspired by CAD97's research project strena.

Usage

  • Fill: Efficiency of filling an empty string interner.
  • Resolve: Efficiency of interned string look-up given a symbol.
  • Allocations: The number of allocations performed by the backend.
  • Footprint: The total heap memory consumed by the backend.

Rating varies between bad, ok and good.

ScenarioRating
Fillgood
Resolvebad
Allocationsgood
Footprintgood
Supports get_or_intern_staticno
Send + Syncyes

Trait Implementations

impl<S> Backend<S> for StringBackend<S> where
    S: Symbol
[src]

impl<S: Clone> Clone for StringBackend<S>[src]

impl<S: Debug> Debug for StringBackend<S>[src]

impl<S> Default for StringBackend<S>[src]

impl<S> Eq for StringBackend<S> where
    S: Symbol
[src]

impl<'a, S> IntoIterator for &'a StringBackend<S> where
    S: Symbol
[src]

type Item = (S, &'a str)

The type of the elements being iterated over.

type IntoIter = Iter<'a, S>

Which kind of iterator are we turning this into?

impl<S> PartialEq<StringBackend<S>> for StringBackend<S> where
    S: Symbol
[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.