pub enum Reference<'de, 'short> {
Long(&'de [u8]),
Short(&'short [u8]),
}
Expand description
Bytes reference
Variants§
Long(&'de [u8])
If the reader can return bytes as long as its lifetime, then zero-copy decoding will be allowed.
Short(&'short [u8])
Bytes returned normally
Auto Trait Implementations§
impl<'de, 'short> Freeze for Reference<'de, 'short>
impl<'de, 'short> RefUnwindSafe for Reference<'de, 'short>
impl<'de, 'short> Send for Reference<'de, 'short>
impl<'de, 'short> Sync for Reference<'de, 'short>
impl<'de, 'short> Unpin for Reference<'de, 'short>
impl<'de, 'short> UnwindSafe for Reference<'de, 'short>
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