[][src]Struct libslide::grammar::mem::InternedStr

pub struct InternedStr(Spur);

An interned String type.

Implementations

impl InternedStr[src]

pub(crate) fn intern<S: AsRef<str>>(s: S) -> Self[src]

Interns a string, or returns the existing interned reference if it already exists.

pub(crate) fn get(&self) -> String[src]

Gets the string interned at this reference.

Trait Implementations

impl Clone for InternedStr[src]

impl Copy for InternedStr[src]

impl Debug for InternedStr[src]

impl Display for InternedStr[src]

impl Eq for InternedStr[src]

impl Hash for InternedStr[src]

impl PartialEq<InternedStr> for InternedStr[src]

impl StructuralEq for InternedStr[src]

impl StructuralPartialEq for InternedStr[src]

Auto Trait Implementations

impl RefUnwindSafe for InternedStr

impl Send for InternedStr

impl Sync for InternedStr

impl Unpin for InternedStr

impl UnwindSafe for InternedStr

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> ToString for T where
    T: Display + ?Sized
[src]

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.