pub struct Raw;Expand description
Bytes as they are (Vec<u8>): a payload a format doesn’t look into.
Trait Implementations§
Source§impl With<Vec<u8>> for Raw
impl With<Vec<u8>> for Raw
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<Vec<u8>>
fn write(f: &Vec<u8>) -> Value
Source§fn encode(f: &Vec<u8>, w: &mut Writer)
fn encode(f: &Vec<u8>, w: &mut Writer)
The field in the binary form, straight: its value encoded unless
the codec knows better.
Source§fn decode(d: &mut Decoder<'_>) -> Option<Vec<u8>>
fn decode(d: &mut Decoder<'_>) -> Option<Vec<u8>>
The field from the binary form, straight;
None sends the read the
slow way (see Schema::decode).Auto Trait Implementations§
impl Freeze for Raw
impl RefUnwindSafe for Raw
impl Send for Raw
impl Sync for Raw
impl Unpin for Raw
impl UnsafeUnpin for Raw
impl UnwindSafe for Raw
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