pub struct Standard<O: Options = Default>(/* private fields */);Expand description
Trait Implementations§
Source§impl<O: Options> Boundary for Standard<O>
impl<O: Options> Boundary for Standard<O>
Source§const CAN_FIND_BOUNDARIES: bool
const CAN_FIND_BOUNDARIES: bool
Whether or not this boundary definition could ever find a boundary
within any provided, valid chunk. Read more
Source§fn find_boundary<S: Segmentation>(chunk: &str) -> Option<NonZero<usize>>
fn find_boundary<S: Segmentation>(chunk: &str) -> Option<NonZero<usize>>
Finds the next index that a boundary should be introduced on. Read more
Source§fn rfind_boundary<S: Segmentation>(chunk: &str) -> Option<NonZero<usize>>
fn rfind_boundary<S: Segmentation>(chunk: &str) -> Option<NonZero<usize>>
Finds the next index from the back of the string that a boundary should
be introduced on. Read more
Source§fn has_boundary_at<S: Segmentation>(chunk: &str, idx: usize) -> bool
fn has_boundary_at<S: Segmentation>(chunk: &str, idx: usize) -> bool
Returns whether a boundary exists at a given byte offset of a string. Read more
Auto Trait Implementations§
impl<O> Freeze for Standard<O>where
PhantomData<O>: Freeze,
impl<O> RefUnwindSafe for Standard<O>where
PhantomData<O>: RefUnwindSafe,
impl<O> Send for Standard<O>where
PhantomData<O>: Send,
impl<O> Sync for Standard<O>where
PhantomData<O>: Sync,
impl<O> Unpin for Standard<O>where
PhantomData<O>: Unpin,
impl<O> UnsafeUnpin for Standard<O>where
PhantomData<O>: UnsafeUnpin,
impl<O> UnwindSafe for Standard<O>where
PhantomData<O>: UnwindSafe,
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