pub enum Fragment<'a> {
Str(&'a str),
Char(char),
Incomplete,
}
Variants§
Str(&'a str)
String slice.
Char(char)
A character.
Incomplete
Incomplete bytes.
This must be the last fragment if available.
Trait Implementations§
impl<'a> Copy for Fragment<'a>
impl<'a> Eq for Fragment<'a>
impl<'a> StructuralPartialEq for Fragment<'a>
Auto Trait Implementations§
impl<'a> Freeze for Fragment<'a>
impl<'a> RefUnwindSafe for Fragment<'a>
impl<'a> Send for Fragment<'a>
impl<'a> Sync for Fragment<'a>
impl<'a> Unpin for Fragment<'a>
impl<'a> UnwindSafe for Fragment<'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