pub struct EncodedSentence(/* private fields */);Expand description
A unicode encoded Sentence is an EncodedSentence
Implementations§
Source§impl EncodedSentence
impl EncodedSentence
Sourcepub fn new(sentence: Vec<EncodedWord>) -> Self
pub fn new(sentence: Vec<EncodedWord>) -> Self
Create a new EncodedSentence from a Vector EncodedWord.
pub fn iter(&mut self) -> Iter<'_, EncodedWord>
Trait Implementations§
Source§impl Clone for EncodedSentence
impl Clone for EncodedSentence
Source§fn clone(&self) -> EncodedSentence
fn clone(&self) -> EncodedSentence
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 EncodedSentence
impl Debug for EncodedSentence
Source§impl Decodable<Sentence> for EncodedSentence
A sentence can be decoded from a Unicode Encoded Sentence.
impl Decodable<Sentence> for EncodedSentence
A sentence can be decoded from a Unicode Encoded Sentence.
Source§impl Encodable<EncodedSentence> for Sentence
A whole sentence can be encoded into Unicode code.
impl Encodable<EncodedSentence> for Sentence
A whole sentence can be encoded into Unicode code.
fn encode(&self) -> Result<EncodedSentence, ParseIntError>
Source§impl From<EncodedSentence> for Sentence
impl From<EncodedSentence> for Sentence
Source§fn from(sentence_dec: EncodedSentence) -> Self
fn from(sentence_dec: EncodedSentence) -> Self
Converts to this type from the input type.
Source§impl From<Sentence> for EncodedSentence
impl From<Sentence> for EncodedSentence
Source§impl PartialEq for EncodedSentence
impl PartialEq for EncodedSentence
impl StructuralPartialEq for EncodedSentence
Auto Trait Implementations§
impl Freeze for EncodedSentence
impl RefUnwindSafe for EncodedSentence
impl Send for EncodedSentence
impl Sync for EncodedSentence
impl Unpin for EncodedSentence
impl UnwindSafe for EncodedSentence
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