Struct openssl::asn1::Asn1StringRef []

pub struct Asn1StringRef(_);

Reference to Asn1String

Methods

impl Asn1StringRef
[src]

[src]

Converts the ASN.1 underlying format to UTF8

ASN.1 strings may utilize UTF-16, ASCII, BMP, or UTF8. This is important to consume the string in a meaningful way without knowing the underlying format.

[src]

Return the string as an array of bytes

The bytes do not directly corespond to UTF-8 encoding. To interact with strings in rust, it is preferable to use as_utf8

[src]

Return the length of the Asn1String (number of bytes)

Trait Implementations

impl ForeignTypeRef for Asn1StringRef

The raw C type.

[src]

Constructs a shared instance of this type from its raw type.

[src]

Constructs a mutable reference of this type from its raw type.

[src]

Returns a raw pointer to the wrapped value.

impl Send for Asn1StringRef
[src]

impl Sync for Asn1StringRef
[src]