[−][src]Struct bcder::encode::Primitive
A value encoder for primitively encoded types.
This type is returned by PrimitiveContent::encode
and
PrimitiveContent::encode_as
.
Trait Implementations
impl<P: PrimitiveContent> Values for Primitive<P>
[src]
fn encoded_len(&self, mode: Mode) -> usize
[src]
fn write_encoded<W: Write>(
&self,
mode: Mode,
target: &mut W
) -> Result<(), Error>
[src]
&self,
mode: Mode,
target: &mut W
) -> Result<(), Error>
fn explicit(self, tag: Tag) -> Constructed<Self> where
Self: Sized,
[src]
Self: Sized,
Converts the encoder into one with an explicit tag.
fn to_captured(&self, mode: Mode) -> Captured
[src]
Captures the encoded values in the given mode.
Auto Trait Implementations
impl<P> Send for Primitive<P> where
P: Send,
P: Send,
impl<P> Unpin for Primitive<P> where
P: Unpin,
P: Unpin,
impl<P> Sync for Primitive<P> where
P: Sync,
P: Sync,
impl<P> UnwindSafe for Primitive<P> where
P: UnwindSafe,
P: UnwindSafe,
impl<P> RefUnwindSafe for Primitive<P> where
P: RefUnwindSafe,
P: RefUnwindSafe,
Blanket Implementations
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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,