[−][src]Struct asn1_der::typed::Null
An ASN.1-DER null object view
Methods
impl<'a> Null<'a>
[src]
pub fn new<S: Sink + Into<&'a [u8]>>(sink: S) -> Result<Self, Asn1DerError>
[src]
Writes a new null object into sink
and returns a type view over it
pub fn write<S: Sink>(sink: &mut S) -> Result<(), Asn1DerError>
[src]
Writes a boolean value
as DER-object to sink
Trait Implementations
impl<'a> Clone for Null<'a>
[src]
impl<'a> Copy for Null<'a>
[src]
impl<'a> DerDecodable<'a> for Null<'a>
[src]
fn load(object: DerObject<'a>) -> Result<Self, Asn1DerError>
[src]
fn decode(raw: &'a [u8]) -> Result<Self, Asn1DerError>
[src]
fn decode_at(raw: &'a [u8], header_start: usize) -> Result<Self, Asn1DerError>
[src]
fn decode_from_source<A: Source, B: Sink + Into<&'a [u8]>>(
source: &mut A,
sink: B
) -> Result<Self, Asn1DerError>
[src]
source: &mut A,
sink: B
) -> Result<Self, Asn1DerError>
impl<'a> DerEncodable for Null<'a>
[src]
impl<'a> DerTypeView<'a> for Null<'a>
[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for Null<'a>
impl<'a> Send for Null<'a>
impl<'a> Sync for Null<'a>
impl<'a> Unpin for Null<'a>
impl<'a> UnwindSafe for Null<'a>
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,
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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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>,