pub struct MapStrings { /* private fields */ }Expand description
Translations from a map, for tests and small applications.
Implementations§
Trait Implementations§
Source§impl Clone for MapStrings
impl Clone for MapStrings
Source§fn clone(&self) -> MapStrings
fn clone(&self) -> MapStrings
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MapStrings
impl Debug for MapStrings
Source§impl Default for MapStrings
impl Default for MapStrings
Source§fn default() -> MapStrings
fn default() -> MapStrings
Returns the “default value” for a type. Read more
Source§impl Strings for MapStrings
impl Strings for MapStrings
Source§fn get_args(&self, key: &str, args: &[(&str, Arg<'_>)]) -> Option<String>
fn get_args(&self, key: &str, args: &[(&str, Arg<'_>)]) -> Option<String>
The text for a key with its arguments placed;
None falls back
to English. By default Strings::get with its { $name }
placeholders filled; a provider formatting its own (plurals,
numbers) overrides it. Read moreAuto Trait Implementations§
impl Freeze for MapStrings
impl RefUnwindSafe for MapStrings
impl Send for MapStrings
impl Sync for MapStrings
impl Unpin for MapStrings
impl UnsafeUnpin for MapStrings
impl UnwindSafe for MapStrings
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more