Struct der::BitString[][src]

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.

pub fn len(&self) -> Length[src]

Get the length of the inner byte slice.

pub fn is_empty(&self) -> bool[src]

Is the inner byte slice empty?

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> 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>

impl<'a> Send for BitString<'a>

impl<'a> Sync for BitString<'a>

impl<'a> Unpin for BitString<'a>

impl<'a> UnwindSafe for BitString<'a>

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> Same<T> for T[src]

type Output = T

Should always be Self

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.