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§
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