pub enum CharByte {
Char(char),
Byte(u8),
}Expand description
Represent either a character or a byte. Used to iterate on partially valid UTF-8 data
Variants§
Trait Implementations§
impl Copy for CharByte
impl Eq for CharByte
impl StructuralPartialEq for CharByte
Auto Trait Implementations§
impl Freeze for CharByte
impl RefUnwindSafe for CharByte
impl Send for CharByte
impl Sync for CharByte
impl Unpin for CharByte
impl UnwindSafe for CharByte
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