Expand description
Return value for RbEncoding::precise_mbclen
.
Variants
CharFound(usize)
Found a valid char, value is the char’s length.
NeedMore(usize)
The slice ended before the end of the current char. Value is the theoretical total length of the char.
Invalid
The bytes at the start of the slice are not valid for the encoding.
Auto Trait Implementations
impl RefUnwindSafe for MbcLen
impl Send for MbcLen
impl Sync for MbcLen
impl Unpin for MbcLen
impl UnwindSafe for MbcLen
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