Struct asn1_der::typed::Utf8String

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

An ASN.1-DER UTF-8 string view

Implementations§

Writes a new UTF8String object with value into sink and returns a type view over it

Gets the UTF-8 string value

Writes an UTF-8 string value as DER-object to 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 to sink

Creates an DER object from an encodable type
The tag for this type
Provides raw access to the underlying DerObject

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.