pub enum TranslationShape {
Singular {
value: String,
},
Plural {
source: PluralSource,
translation: BTreeMap<String, String>,
variable: String,
},
}Expand description
Public translation shape returned from parsed catalogs.
Variants§
Singular
Message represented by a single string value.
Plural
Message represented by structured plural categories.
Trait Implementations§
Source§impl Clone for TranslationShape
impl Clone for TranslationShape
Source§fn clone(&self) -> TranslationShape
fn clone(&self) -> TranslationShape
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 TranslationShape
impl Debug for TranslationShape
Source§impl PartialEq for TranslationShape
impl PartialEq for TranslationShape
impl Eq for TranslationShape
impl StructuralPartialEq for TranslationShape
Auto Trait Implementations§
impl Freeze for TranslationShape
impl RefUnwindSafe for TranslationShape
impl Send for TranslationShape
impl Sync for TranslationShape
impl Unpin for TranslationShape
impl UnsafeUnpin for TranslationShape
impl UnwindSafe for TranslationShape
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