[][src]Struct der::BitString

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

ASN.1 BIT STRING type.

Implementations

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

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

Create a new BitString from a byte slice.

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

Borrow the inner byte slice.

Trait Implementations

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

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

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

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

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

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

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

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

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

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

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

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

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

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

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

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

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

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

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

impl<'a> UnwindSafe for BitString<'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.