Struct tokenizers::tokenizer::pre_tokenizer::Split
source · pub struct Split { /* private fields */ }
Expand description
Wrapper for a subpart of a NormalizedString
.
This Split contains the underlying NormalizedString
as well as its offsets
in the original string. These offsets are in the original
referential.
It also contains any Token
associated to the current split
Trait Implementations§
source§impl From<NormalizedString> for Split
impl From<NormalizedString> for Split
source§fn from(n: NormalizedString) -> Self
fn from(n: NormalizedString) -> Self
Converts to this type from the input type.
source§impl PartialEq for Split
impl PartialEq for Split
impl Eq for Split
impl StructuralPartialEq for Split
Auto Trait Implementations§
impl Freeze for Split
impl RefUnwindSafe for Split
impl Send for Split
impl Sync for Split
impl Unpin for Split
impl UnwindSafe for Split
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