pub enum NormalizedText {
NotNormalized,
NormalizedToSelf,
Normalized(String),
}Expand description
Represents the outcomes of text normalization that can happen on a SegmentedToken.
Variants§
NotNormalized
The token was not normalized, either it didn’T pass a normalization stage, or the normlaization stage didn’t attempt normlaization (i.e. because no algorithm is implemented for a specific language)
NormalizedToSelf
The token was normalized, but the result is the same as the original text
Normalized(String)
The token was normalized into something that is not the original text.
Trait Implementations§
Source§impl Clone for NormalizedText
impl Clone for NormalizedText
Source§fn clone(&self) -> NormalizedText
fn clone(&self) -> NormalizedText
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 NormalizedText
impl Debug for NormalizedText
Source§impl Default for NormalizedText
impl Default for NormalizedText
Source§fn default() -> NormalizedText
fn default() -> NormalizedText
Returns the “default value” for a type. Read more
Source§impl From<NormalizedText> for Option<String>
impl From<NormalizedText> for Option<String>
Source§fn from(value: NormalizedText) -> Self
fn from(value: NormalizedText) -> Self
Converts to this type from the input type.
Source§impl PartialEq for NormalizedText
impl PartialEq for NormalizedText
impl Eq for NormalizedText
impl StructuralPartialEq for NormalizedText
Auto Trait Implementations§
impl Freeze for NormalizedText
impl RefUnwindSafe for NormalizedText
impl Send for NormalizedText
impl Sync for NormalizedText
impl Unpin for NormalizedText
impl UnwindSafe for NormalizedText
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.