Struct asn1_der::DerObject

source ·
pub struct DerObject<'a> { /* private fields */ }
Expand description

An untyped DER object

Implementations§

Writes a new DER object with tag and value into sink and returns a view over it

Writes a new DER object with tag, len and value into sink and returns a view over it

Decodes an object from raw

Reads a DER-TLV structure from source by parsing the length field and copying the necessary bytes into sink and returns a view over it

The underlying raw slice

The object header

The object tag

The object value

Encodes self to sink

Writes a tag-len-value combination as DER-TLV structure into sink

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Loads object as Self
Decodes an object as Self
Decodes an object as Self
Reads an object from source by parsing the length field and copying the necessary bytes into sink and decoding it from sink Read more
Encodes self into sink
Creates an DER object from an encodable type

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.