Struct transmog_cbor::Cbor
source · pub struct Cbor;
Expand description
CBOR implementor of [Format
].
Trait Implementations§
source§impl<'a, T> Format<'a, T> for Cborwhere
T: Serialize,
impl<'a, T> Format<'a, T> for Cborwhere T: Serialize,
source§fn serialize_into<W: Write>(
&self,
value: &T,
writer: W
) -> Result<(), Self::Error>
fn serialize_into<W: Write>( &self, value: &T, writer: W ) -> Result<(), Self::Error>
Serialize
value
into writer
.source§impl<T> OwnedDeserializer<T> for Cborwhere
T: Serialize + DeserializeOwned,
impl<T> OwnedDeserializer<T> for Cborwhere T: Serialize + DeserializeOwned,
source§fn deserialize_owned(&self, data: &[u8]) -> Result<T, Self::Error>
fn deserialize_owned(&self, data: &[u8]) -> Result<T, Self::Error>
Deserialize
T
from data
.source§fn deserialize_from<R: Read>(&self, reader: R) -> Result<T, Self::Error>
fn deserialize_from<R: Read>(&self, reader: R) -> Result<T, Self::Error>
Deserialize
T
from reader
.Auto Trait Implementations§
impl RefUnwindSafe for Cbor
impl Send for Cbor
impl Sync for Cbor
impl Unpin for Cbor
impl UnwindSafe for Cbor
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