Struct wz_utf8::MaxLineLength
source · [−]pub struct MaxLineLength { /* private fields */ }
Expand description
Max line length counter for UTF-8 encoded byte slices
use wz_core::Counter;
use wz_utf8::MaxLineLength;
let counter = MaxLineLength::with_linebreak(b'\n');
Implementations
sourceimpl MaxLineLength
impl MaxLineLength
sourcepub fn with_linebreak(line_break: u8) -> Self
pub fn with_linebreak(line_break: u8) -> Self
Creates a new MaxLineLength counter that looks for line_break bytes
sourcepub fn carriage_return() -> Self
pub fn carriage_return() -> Self
Creates a new MaxLineLength counter that looks for ‘\r’
Trait Implementations
sourceimpl Clone for MaxLineLength
impl Clone for MaxLineLength
sourcefn clone(&self) -> MaxLineLength
fn clone(&self) -> MaxLineLength
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<T> Counter<T> for MaxLineLengthwhere
T: MaxLineLengthCollector,
impl<T> Counter<T> for MaxLineLengthwhere
T: MaxLineLengthCollector,
Auto Trait Implementations
impl RefUnwindSafe for MaxLineLength
impl Send for MaxLineLength
impl Sync for MaxLineLength
impl Unpin for MaxLineLength
impl UnwindSafe for MaxLineLength
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more