pub struct EncodedWord<'a>(pub Vec<EncodedWordToken<'a>>);Expand description
Represents an encoded word.
Tuple Fields§
§0: Vec<EncodedWordToken<'a>>Implementations§
Source§impl<'a> EncodedWord<'a>
impl<'a> EncodedWord<'a>
Sourcepub fn data(&self) -> String
pub fn data(&self) -> String
Returns the data represented by this EncodedWord, encoded into UTF8
Sourcepub fn from_chars<I>(chars: I) -> Selfwhere
I: IntoIterator<Item = char>,
pub fn from_chars<I>(chars: I) -> Selfwhere
I: IntoIterator<Item = char>,
Build an encoded word from UTF-8 chars. Uses the UTF-8 charset and quoted encoding.
Trait Implementations§
Source§impl<'a> Clone for EncodedWord<'a>
impl<'a> Clone for EncodedWord<'a>
Source§fn clone(&self) -> EncodedWord<'a>
fn clone(&self) -> EncodedWord<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> ContainsUtf8 for EncodedWord<'a>
impl<'a> ContainsUtf8 for EncodedWord<'a>
fn contains_utf8(&self) -> bool
Source§impl<'a> Debug for EncodedWord<'a>
impl<'a> Debug for EncodedWord<'a>
Source§impl<'a> IntoBoundedStatic for EncodedWord<'a>
impl<'a> IntoBoundedStatic for EncodedWord<'a>
Source§type Static = EncodedWord<'static>
type Static = EncodedWord<'static>
The target type is bounded by the
'static lifetime.Source§fn into_static(self) -> Self::Static
fn into_static(self) -> Self::Static
Convert an owned
T into an owned T such that T: 'static.Source§impl<'a> PartialEq for EncodedWord<'a>
impl<'a> PartialEq for EncodedWord<'a>
Source§fn eq(&self, other: &EncodedWord<'a>) -> bool
fn eq(&self, other: &EncodedWord<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'a> StructuralPartialEq for EncodedWord<'a>
Source§impl<'a> ToBoundedStatic for EncodedWord<'a>
impl<'a> ToBoundedStatic for EncodedWord<'a>
Auto Trait Implementations§
impl<'a> Freeze for EncodedWord<'a>
impl<'a> RefUnwindSafe for EncodedWord<'a>
impl<'a> Send for EncodedWord<'a>
impl<'a> Sync for EncodedWord<'a>
impl<'a> Unpin for EncodedWord<'a>
impl<'a> UnsafeUnpin for EncodedWord<'a>
impl<'a> UnwindSafe for EncodedWord<'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