pub enum Utf8Chunk {
Valid(char),
Invalid(u8),
}Expand description
Represents a chunk yielded by Utf8Iter: either a valid Unicode character or an invalid byte.
Variants§
Valid(char)
A valid Unicode character.
Invalid(u8)
An invalid byte that could not be decoded as UTF-8.
Trait Implementations§
impl Eq for Utf8Chunk
impl StructuralPartialEq for Utf8Chunk
Auto Trait Implementations§
impl Freeze for Utf8Chunk
impl RefUnwindSafe for Utf8Chunk
impl Send for Utf8Chunk
impl Sync for Utf8Chunk
impl Unpin for Utf8Chunk
impl UnwindSafe for Utf8Chunk
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