[][src]Struct der::OctetString

pub struct OctetString<'a> { /* fields omitted */ }

ASN.1 OCTET STRING type.

Implementations

impl<'a> OctetString<'a>[src]

pub fn new(slice: &'a [u8]) -> Result<Self>[src]

Create a new OctetString from a byte slice.

pub fn as_bytes(&self) -> &'a [u8][src]

Borrow the inner byte slice.

Trait Implementations

impl<'_> AsRef<[u8]> for OctetString<'_>[src]

impl<'a> Clone for OctetString<'a>[src]

impl<'a> Copy for OctetString<'a>[src]

impl<'a> Debug for OctetString<'a>[src]

impl<'a> Encodable for OctetString<'a>[src]

impl<'a> Eq for OctetString<'a>[src]

impl<'a, '_> From<&'_ OctetString<'a>> for OctetString<'a>[src]

impl<'a> From<OctetString<'a>> for Any<'a>[src]

impl<'a> From<OctetString<'a>> for &'a [u8][src]

impl<'a> PartialEq<OctetString<'a>> for OctetString<'a>[src]

impl<'a> StructuralEq for OctetString<'a>[src]

impl<'a> StructuralPartialEq for OctetString<'a>[src]

impl<'a> Tagged for OctetString<'a>[src]

impl<'a> TryFrom<Any<'a>> for OctetString<'a>[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

impl<'a> RefUnwindSafe for OctetString<'a>[src]

impl<'a> Send for OctetString<'a>[src]

impl<'a> Sync for OctetString<'a>[src]

impl<'a> Unpin for OctetString<'a>[src]

impl<'a> UnwindSafe for OctetString<'a>[src]

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.