pub struct HATSplitter;Implementations§
Source§impl HATSplitter
impl HATSplitter
Trait Implementations§
Source§impl Default for HATSplitter
impl Default for HATSplitter
Source§impl Splitter for HATSplitter
impl Splitter for HATSplitter
Source§fn split_with_limit(&self, input: &str, max_bytes: usize) -> Vec<Vec<u8>>
fn split_with_limit(&self, input: &str, max_bytes: usize) -> Vec<Vec<u8>>
Splits a string into words and limits the size of each word to
max_bytes_per_word. As
this function enforces a byte limit, it may split unicode characters. That is, this
function does not guarantee that the resulting byte arrays are valid UTF-8.Auto Trait Implementations§
impl Freeze for HATSplitter
impl RefUnwindSafe for HATSplitter
impl Send for HATSplitter
impl Sync for HATSplitter
impl Unpin for HATSplitter
impl UnwindSafe for HATSplitter
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