Enum tokenizers::tokenizer::pre_tokenizer::OffsetType
source · pub enum OffsetType {
Byte,
Char,
}
Expand description
Various possible types of offsets
Variants§
Trait Implementations§
source§impl Clone for OffsetType
impl Clone for OffsetType
source§fn clone(&self) -> OffsetType
fn clone(&self) -> OffsetType
Returns a copy 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 OffsetType
impl Debug for OffsetType
source§impl PartialEq for OffsetType
impl PartialEq for OffsetType
source§fn eq(&self, other: &OffsetType) -> bool
fn eq(&self, other: &OffsetType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for OffsetType
impl Eq for OffsetType
impl StructuralPartialEq for OffsetType
Auto Trait Implementations§
impl Freeze for OffsetType
impl RefUnwindSafe for OffsetType
impl Send for OffsetType
impl Sync for OffsetType
impl Unpin for OffsetType
impl UnwindSafe for OffsetType
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