[−][src]Struct cbor::encoder::GenericEncoder
A generic encoder encodes a Value
.
Implementations
impl<W: WriteBytesExt> GenericEncoder<W>
[src]
pub fn new(w: W) -> GenericEncoder<W>
[src]
pub fn from_encoder(e: Encoder<W>) -> GenericEncoder<W>
[src]
pub fn into_inner(self) -> Encoder<W>
[src]
pub fn borrow_mut(&mut self) -> &mut Encoder<W>
[src]
pub fn value(&mut self, x: &Value) -> EncodeResult
[src]
Auto Trait Implementations
impl<W> RefUnwindSafe for GenericEncoder<W> where
W: RefUnwindSafe,
[src]
W: RefUnwindSafe,
impl<W> Send for GenericEncoder<W> where
W: Send,
[src]
W: Send,
impl<W> Sync for GenericEncoder<W> where
W: Sync,
[src]
W: Sync,
impl<W> Unpin for GenericEncoder<W> where
W: Unpin,
[src]
W: Unpin,
impl<W> UnwindSafe for GenericEncoder<W> where
W: UnwindSafe,
[src]
W: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,