pub enum EffectiveTranslationRef<'a> {
Singular(&'a str),
Plural(&'a BTreeMap<String, String>),
}Expand description
Borrowed view over a message translation.
Variants§
Singular(&'a str)
Singular translation borrowed from the parsed catalog.
Plural(&'a BTreeMap<String, String>)
Plural translation borrowed from the parsed catalog.
Trait Implementations§
Source§impl<'a> Clone for EffectiveTranslationRef<'a>
impl<'a> Clone for EffectiveTranslationRef<'a>
Source§fn clone(&self) -> EffectiveTranslationRef<'a>
fn clone(&self) -> EffectiveTranslationRef<'a>
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<'a> Debug for EffectiveTranslationRef<'a>
impl<'a> Debug for EffectiveTranslationRef<'a>
Source§impl<'a> PartialEq for EffectiveTranslationRef<'a>
impl<'a> PartialEq for EffectiveTranslationRef<'a>
impl<'a> Eq for EffectiveTranslationRef<'a>
impl<'a> StructuralPartialEq for EffectiveTranslationRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for EffectiveTranslationRef<'a>
impl<'a> RefUnwindSafe for EffectiveTranslationRef<'a>
impl<'a> Send for EffectiveTranslationRef<'a>
impl<'a> Sync for EffectiveTranslationRef<'a>
impl<'a> Unpin for EffectiveTranslationRef<'a>
impl<'a> UnsafeUnpin for EffectiveTranslationRef<'a>
impl<'a> UnwindSafe for EffectiveTranslationRef<'a>
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