[][src]Struct sml::Small

pub struct Small<'a> {
    pub small: &'a SmallString,
    // some fields omitted
}

Small is a selection of SmallString. Its function is to encapsulate path selections. See the path() function implemented by the FromSmall trait.

Fields

small: &'a SmallString

Methods

impl<'a> Small<'a>[src]

pub fn unique_value(&self) -> Result<Token, SmallError>[src]

Checks that there is only one value in Small and returns it.

Trait Implementations

impl<'a> Clone for Small<'a>[src]

default fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'a> Debug for Small<'a>[src]

impl<'a> Display for Small<'a>[src]

Auto Trait Implementations

impl<'a> Send for Small<'a>

impl<'a> Sync for Small<'a>

Blanket Implementations

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

type Owned = T

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> From for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

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

The type returned in the event of a conversion error.