pub enum BorrowedMsgStr<'a> {
None,
Singular(Cow<'a, str>),
Plural(Vec<Cow<'a, str>>),
}Expand description
Borrowed translation payload for a PO item.
Variants§
None
No translation values are present.
Singular(Cow<'a, str>)
Single translation string.
Plural(Vec<Cow<'a, str>>)
Plural translation strings indexed by plural slot.
Implementations§
Source§impl BorrowedMsgStr<'_>
impl BorrowedMsgStr<'_>
Sourcepub fn into_owned(self) -> MsgStr
pub fn into_owned(self) -> MsgStr
Converts the borrowed payload into an owned MsgStr.
Trait Implementations§
Source§impl<'a> Clone for BorrowedMsgStr<'a>
impl<'a> Clone for BorrowedMsgStr<'a>
Source§fn clone(&self) -> BorrowedMsgStr<'a>
fn clone(&self) -> BorrowedMsgStr<'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 BorrowedMsgStr<'a>
impl<'a> Debug for BorrowedMsgStr<'a>
Source§impl<'a> Default for BorrowedMsgStr<'a>
impl<'a> Default for BorrowedMsgStr<'a>
Source§fn default() -> BorrowedMsgStr<'a>
fn default() -> BorrowedMsgStr<'a>
Returns the “default value” for a type. Read more
Source§impl<'a> PartialEq for BorrowedMsgStr<'a>
impl<'a> PartialEq for BorrowedMsgStr<'a>
impl<'a> Eq for BorrowedMsgStr<'a>
impl<'a> StructuralPartialEq for BorrowedMsgStr<'a>
Auto Trait Implementations§
impl<'a> Freeze for BorrowedMsgStr<'a>
impl<'a> RefUnwindSafe for BorrowedMsgStr<'a>
impl<'a> Send for BorrowedMsgStr<'a>
impl<'a> Sync for BorrowedMsgStr<'a>
impl<'a> Unpin for BorrowedMsgStr<'a>
impl<'a> UnsafeUnpin for BorrowedMsgStr<'a>
impl<'a> UnwindSafe for BorrowedMsgStr<'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