[][src]Enum fluent_bundle::types::FluentValue

pub enum FluentValue<'source> {
    String(Cow<'source, str>),
    Number(Cow<'source, str>),
    Error(DisplayableNode<'source>),
    None,
}

Variants

String(Cow<'source, str>)
Number(Cow<'source, str>)
Error(DisplayableNode<'source>)
None

Methods

impl<'source> FluentValue<'source>[src]

pub fn into_number<S: ToString>(v: S) -> Self[src]

pub fn matches<R: Borrow<FluentResource>>(
    &self,
    other: &FluentValue,
    scope: &Scope<R>
) -> bool
[src]

pub fn to_string(&self) -> Cow<'source, str>[src]

Trait Implementations

impl<'source> Clone for FluentValue<'source>[src]

impl<'source> PartialEq<FluentValue<'source>> for FluentValue<'source>[src]

impl<'source> From<String> for FluentValue<'source>[src]

impl<'source> From<&'source str> for FluentValue<'source>[src]

impl<'source> From<i8> for FluentValue<'source>[src]

impl<'source> From<&'source i8> for FluentValue<'source>[src]

impl<'source> From<i16> for FluentValue<'source>[src]

impl<'source> From<&'source i16> for FluentValue<'source>[src]

impl<'source> From<i32> for FluentValue<'source>[src]

impl<'source> From<&'source i32> for FluentValue<'source>[src]

impl<'source> From<i64> for FluentValue<'source>[src]

impl<'source> From<&'source i64> for FluentValue<'source>[src]

impl<'source> From<i128> for FluentValue<'source>[src]

impl<'source> From<&'source i128> for FluentValue<'source>[src]

impl<'source> From<isize> for FluentValue<'source>[src]

impl<'source> From<&'source isize> for FluentValue<'source>[src]

impl<'source> From<u8> for FluentValue<'source>[src]

impl<'source> From<&'source u8> for FluentValue<'source>[src]

impl<'source> From<u16> for FluentValue<'source>[src]

impl<'source> From<&'source u16> for FluentValue<'source>[src]

impl<'source> From<u32> for FluentValue<'source>[src]

impl<'source> From<&'source u32> for FluentValue<'source>[src]

impl<'source> From<u64> for FluentValue<'source>[src]

impl<'source> From<&'source u64> for FluentValue<'source>[src]

impl<'source> From<u128> for FluentValue<'source>[src]

impl<'source> From<&'source u128> for FluentValue<'source>[src]

impl<'source> From<usize> for FluentValue<'source>[src]

impl<'source> From<&'source usize> for FluentValue<'source>[src]

impl<'source> From<f32> for FluentValue<'source>[src]

impl<'source> From<&'source f32> for FluentValue<'source>[src]

impl<'source> From<f64> for FluentValue<'source>[src]

impl<'source> From<&'source f64> for FluentValue<'source>[src]

impl<'source> Debug for FluentValue<'source>[src]

impl<'source> Display for FluentValue<'source>[src]

Auto Trait Implementations

impl<'source> Send for FluentValue<'source>

impl<'source> Unpin for FluentValue<'source>

impl<'source> Sync for FluentValue<'source>

impl<'source> UnwindSafe for FluentValue<'source>

impl<'source> RefUnwindSafe for FluentValue<'source>

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

impl<T> From<T> for 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.

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

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

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