pub enum Wtf8Chunk<'a> {
Utf8(&'a str),
UnpairedSurrogate(u16),
}Expand description
Part of a WTF-8 slice.
Either an Utf8 string, or a UnpairedSurrogate.
Variants§
Utf8(&'a str)
The chunk as a UTF-8 string.
UnpairedSurrogate(u16)
The chunk as an unpaired surrogate.
Implementations§
Trait Implementations§
impl<'a> Copy for Wtf8Chunk<'a>
impl<'a> Eq for Wtf8Chunk<'a>
impl<'a> StructuralPartialEq for Wtf8Chunk<'a>
Auto Trait Implementations§
impl<'a> Freeze for Wtf8Chunk<'a>
impl<'a> RefUnwindSafe for Wtf8Chunk<'a>
impl<'a> Send for Wtf8Chunk<'a>
impl<'a> Sync for Wtf8Chunk<'a>
impl<'a> Unpin for Wtf8Chunk<'a>
impl<'a> UnwindSafe for Wtf8Chunk<'a>
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