pub struct TextStrWithLang<'a, 'b>(pub &'b [(LanguageIdentifier, &'a str)]);Expand description
A text string with a natural language specified.
This is written as a string containing either bare ASCII (if possible) or a byte order mark followed by UTF-16-BE bytes. Both forms are interspersed by the requisite ASCII language escape sequences.
For a text string with an undefined natural language, see TextStr.
Tuple Fields§
§0: &'b [(LanguageIdentifier, &'a str)]Trait Implementations§
Source§impl<'a, 'b> Clone for TextStrWithLang<'a, 'b>
impl<'a, 'b> Clone for TextStrWithLang<'a, 'b>
Source§fn clone(&self) -> TextStrWithLang<'a, 'b>
fn clone(&self) -> TextStrWithLang<'a, 'b>
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, 'b> Debug for TextStrWithLang<'a, 'b>
impl<'a, 'b> Debug for TextStrWithLang<'a, 'b>
Source§impl<'a, 'b> Hash for TextStrWithLang<'a, 'b>
impl<'a, 'b> Hash for TextStrWithLang<'a, 'b>
Source§impl<'a, 'b> Ord for TextStrWithLang<'a, 'b>
impl<'a, 'b> Ord for TextStrWithLang<'a, 'b>
Source§fn cmp(&self, other: &TextStrWithLang<'a, 'b>) -> Ordering
fn cmp(&self, other: &TextStrWithLang<'a, 'b>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<'a, 'b> PartialEq for TextStrWithLang<'a, 'b>
impl<'a, 'b> PartialEq for TextStrWithLang<'a, 'b>
Source§impl<'a, 'b> PartialOrd for TextStrWithLang<'a, 'b>
impl<'a, 'b> PartialOrd for TextStrWithLang<'a, 'b>
Source§impl<'a, 'b> Primitive for TextStrWithLang<'a, 'b>
impl<'a, 'b> Primitive for TextStrWithLang<'a, 'b>
impl<'a, 'b> Copy for TextStrWithLang<'a, 'b>
impl<'a, 'b> Eq for TextStrWithLang<'a, 'b>
impl<'a, 'b> StructuralPartialEq for TextStrWithLang<'a, 'b>
impl<'a, 'b> TextStrLike for TextStrWithLang<'a, 'b>
Auto Trait Implementations§
impl<'a, 'b> Freeze for TextStrWithLang<'a, 'b>
impl<'a, 'b> RefUnwindSafe for TextStrWithLang<'a, 'b>
impl<'a, 'b> Send for TextStrWithLang<'a, 'b>
impl<'a, 'b> Sync for TextStrWithLang<'a, 'b>
impl<'a, 'b> Unpin for TextStrWithLang<'a, 'b>
impl<'a, 'b> UnwindSafe for TextStrWithLang<'a, 'b>
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