[]Struct openssl::asn1::Asn1StringRef

pub struct Asn1StringRef(_);

Reference to Asn1String

Methods

impl Asn1StringRef
[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.

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

Return the length of the Asn1String (number of bytes)

Trait Implementations

impl Sync for Asn1StringRef
[src]

impl AsRef<Asn1StringRef> for Asn1String

Performs the conversion.

impl Send for Asn1StringRef
[src]

impl Borrow<Asn1StringRef> for Asn1String

Immutably borrows from an owned value. Read more

impl ForeignTypeRef for Asn1StringRef

The raw C type.

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

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

Returns a raw pointer to the wrapped value.

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

Performs the conversion.

impl<T> From for T
[src]

Performs the conversion.

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> Borrow for T where
    T: ?Sized
[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut for T where
    T: ?Sized
[src]

Mutably borrows from an owned value. Read more

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

🔬 This is a nightly-only experimental API. (get_type_id)

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more