pub enum DataType<'a> {
Vec(Vec<u8>),
VecRef(&'a Vec<u8>),
VecMut(&'a mut Vec<u8>),
}Expand description
A helper enum to allow getting the source data from a Vec<u8> reader and/or writer.
This data type is only intended for internal usage.
Variants§
Auto Trait Implementations§
impl<'a> Freeze for DataType<'a>
impl<'a> RefUnwindSafe for DataType<'a>
impl<'a> Send for DataType<'a>
impl<'a> Sync for DataType<'a>
impl<'a> Unpin for DataType<'a>
impl<'a> !UnwindSafe for DataType<'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