pub enum Reference<'de, 'a> {
Borrowed(&'de [u8]),
Copied(&'a [u8]),
}
Expand description
Types used by decoder
Variants§
Borrowed(&'de [u8])
Reference to a byte sequence that survives at least as long as the de
Copied(&'a [u8])
Reference to a byte sequence that may be free soon
Implementations§
Trait Implementations§
Source§impl<'de, 'a> Ord for Reference<'de, 'a>
impl<'de, 'a> Ord for Reference<'de, 'a>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<'de, 'a> PartialOrd for Reference<'de, 'a>
impl<'de, 'a> PartialOrd for Reference<'de, 'a>
impl<'de, 'a> Copy for Reference<'de, 'a>
impl<'de, 'a> Eq for Reference<'de, 'a>
impl<'de, 'a> StructuralPartialEq for Reference<'de, 'a>
Auto Trait Implementations§
impl<'de, 'a> Freeze for Reference<'de, 'a>
impl<'de, 'a> RefUnwindSafe for Reference<'de, 'a>
impl<'de, 'a> Send for Reference<'de, 'a>
impl<'de, 'a> Sync for Reference<'de, 'a>
impl<'de, 'a> Unpin for Reference<'de, 'a>
impl<'de, 'a> UnwindSafe for Reference<'de, '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