[−][src]Struct fluent::FluentArgs
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]
K: Into<Cow<'args, str>>,
pub fn iter(&self) -> impl Iterator<Item = (&str, &FluentValue<'_>)>
[src]
Trait Implementations
impl<'args> FromIterator<(&'args str, FluentValue<'args>)> for FluentArgs<'args>
[src]
fn from_iter<I>(iter: I) -> FluentArgs<'args> where
I: IntoIterator<Item = (&'args str, FluentValue<'args>)>,
[src]
I: IntoIterator<Item = (&'args str, FluentValue<'args>)>,
impl<'args> FromIterator<(String, FluentValue<'args>)> for FluentArgs<'args>
[src]
fn from_iter<I>(iter: I) -> FluentArgs<'args> where
I: IntoIterator<Item = (String, FluentValue<'args>)>,
[src]
I: IntoIterator<Item = (String, FluentValue<'args>)>,
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>
Which kind of iterator are we turning this into?
fn into_iter(self) -> <FluentArgs<'args> as IntoIterator>::IntoIter
[src]
Auto Trait Implementations
impl<'args> !RefUnwindSafe for FluentArgs<'args>
impl<'args> Send for FluentArgs<'args>
impl<'args> !Sync for FluentArgs<'args>
impl<'args> Unpin for FluentArgs<'args>
impl<'args> !UnwindSafe for FluentArgs<'args>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<I> IntoIterator for I where
I: Iterator,
[src]
I: Iterator,
type Item = <I as Iterator>::Item
The type of the elements being iterated over.
type IntoIter = I
Which kind of iterator are we turning this into?
fn into_iter(self) -> I
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,