Enum icu_pattern::InterpolatedKind[][src]

pub enum InterpolatedKind<'i, 's, E> {
    Literal(&'i Cow<'s, str>),
    Element(&'i E),
}

The type returned by the Interpolator iterator. This enum stores references to string literals parsed as part of the pattern and elements returned by the ReplacementProvider.

Lifetimes

  • i: The life time of a kind that is being interpolated.
  • s: The life time of a string slice literal.

Variants

Literal(&'i Cow<'s, str>)
Element(&'i E)

Trait Implementations

impl<'i, 's, E: Debug> Debug for InterpolatedKind<'i, 's, E>[src]

impl<'i, 's, E> Display for InterpolatedKind<'i, 's, E> where
    E: Display
[src]

impl<'i, 's, E: PartialEq> PartialEq<InterpolatedKind<'i, 's, E>> for InterpolatedKind<'i, 's, E>[src]

impl<'i, 's, E> StructuralPartialEq for InterpolatedKind<'i, 's, E>[src]

impl<'i, 's, E> Writeable for InterpolatedKind<'i, 's, E> where
    E: Writeable
[src]

Auto Trait Implementations

impl<'i, 's, E> RefUnwindSafe for InterpolatedKind<'i, 's, E> where
    E: RefUnwindSafe

impl<'i, 's, E> Send for InterpolatedKind<'i, 's, E> where
    E: Sync

impl<'i, 's, E> Sync for InterpolatedKind<'i, 's, E> where
    E: Sync

impl<'i, 's, E> Unpin for InterpolatedKind<'i, 's, E> where
    's: 'i, 

impl<'i, 's, E> UnwindSafe for InterpolatedKind<'i, 's, E> where
    E: RefUnwindSafe

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> 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.