pub struct TokenizedText {
pub text: String,
pub tokens: Vec<Token>,
}
Expand description
Holds the result of tokenizing a text string
Fields§
§text: String
The original text that was tokenized
tokens: Vec<Token>
A list of Token objects extracted from the text
Implementations§
Trait Implementations§
Source§impl Clone for TokenizedText
impl Clone for TokenizedText
Source§fn clone(&self) -> TokenizedText
fn clone(&self) -> TokenizedText
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 TokenizedText
impl Debug for TokenizedText
Source§impl<'de> Deserialize<'de> for TokenizedText
impl<'de> Deserialize<'de> for TokenizedText
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for TokenizedText
impl PartialEq for TokenizedText
Source§impl Serialize for TokenizedText
impl Serialize for TokenizedText
impl StructuralPartialEq for TokenizedText
Auto Trait Implementations§
impl Freeze for TokenizedText
impl RefUnwindSafe for TokenizedText
impl Send for TokenizedText
impl Sync for TokenizedText
impl Unpin for TokenizedText
impl UnwindSafe for TokenizedText
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