pub trait FluentType: Debug + AnyEq + 'static {
    // Required methods
    fn duplicate(&self) -> Box<dyn FluentType + Send>;
    fn as_string(&self, intls: &IntlLangMemoizer) -> Cow<'static, str>;
    fn as_string_threadsafe(
        &self,
        intls: &IntlLangMemoizer
    ) -> Cow<'static, str>;
}

Required Methods§

source

fn duplicate(&self) -> Box<dyn FluentType + Send>

source

fn as_string(&self, intls: &IntlLangMemoizer) -> Cow<'static, str>

source

fn as_string_threadsafe(&self, intls: &IntlLangMemoizer) -> Cow<'static, str>

Trait Implementations§

source§

impl PartialEq for dyn FluentType + Send

source§

fn eq(&self, other: &(dyn FluentType + Send + 'static)) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

Implementors§