[][src]Struct fluent::FluentArgs

pub struct FluentArgs<'args>(_);

A map of arguments passed from the code to the localization to be used for message formatting.

Implementations

impl<'args> FluentArgs<'args>[src]

pub fn new() -> FluentArgs<'args>[src]

pub fn with_capacity(capacity: usize) -> FluentArgs<'args>[src]

pub fn get(&self, key: &str) -> Option<&FluentValue<'args>>[src]

pub fn add<K>(&mut self, key: K, value: FluentValue<'args>) where
    K: Into<Cow<'args, str>>, 
[src]

pub fn iter(&self) -> impl Iterator<Item = (&str, &FluentValue<'_>)>[src]

Trait Implementations

impl<'args> Debug for FluentArgs<'args>[src]

impl<'args> Default for FluentArgs<'args>[src]

impl<'args> FromIterator<(&'args str, FluentValue<'args>)> for FluentArgs<'args>[src]

impl<'args> FromIterator<(String, FluentValue<'args>)> for FluentArgs<'args>[src]

impl<'args> IntoIterator for FluentArgs<'args>[src]

type Item = (Cow<'args, str>, FluentValue<'args>)

The type of the elements being iterated over.

type IntoIter = IntoIter<<FluentArgs<'args> as IntoIterator>::Item, Global>

Which kind of iterator are we turning this into?

Auto Trait Implementations

impl<'args> !RefUnwindSafe for FluentArgs<'args>[src]

impl<'args> Send for FluentArgs<'args>[src]

impl<'args> !Sync for FluentArgs<'args>[src]

impl<'args> Unpin for FluentArgs<'args>[src]

impl<'args> !UnwindSafe for FluentArgs<'args>[src]

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