[][src]Struct string_interner::backend::SimpleBackend

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

A simple backend that stores a separate allocation for every interned string.

Use this if you can afford many small allocations and if you want to have especially decent performance for look-ups when the string interner is already filled to some extend.

Usage

  • Fill: Efficiency of filling an empty string interner.
  • Query: Efficiency of interned string look-up given a symbol.
  • Memory: The number of allocations and overall memory consumption.

Rating varies between bad, ok and good.

ScenarioRating
Fillbad
Querygood
Memorybad: many small allocations

Trait Implementations

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

impl<S> Clone for SimpleBackend<S> where
    S: Symbol
[src]

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

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

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

impl<'a, S> IntoIterator for &'a SimpleBackend<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<SimpleBackend<S>> for SimpleBackend<S> where
    S: Symbol
[src]

Auto Trait Implementations

impl<S> RefUnwindSafe for SimpleBackend<S>

impl<S> Send for SimpleBackend<S>

impl<S> Sync for SimpleBackend<S>

impl<S> Unpin for SimpleBackend<S>

impl<S> UnwindSafe for SimpleBackend<S>

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.