[−][src]Struct der::BitString
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]
pub fn encoded_len(&self) -> Result<Length>
[src]
pub fn encode(&self, encoder: &mut Encoder<'_>) -> Result<()>
[src]
pub fn encode_to_slice<'a>(&self, buf: &'a mut [u8]) -> Result<&'a [u8]>
[src]
pub fn encode_to_vec(&self, buf: &mut Vec<u8>) -> Result<Length>
[src]
pub fn to_vec(&self) -> Result<Vec<u8>>
[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]
pub fn eq(&self, other: &BitString<'a>) -> bool
[src]
pub fn ne(&self, other: &BitString<'a>) -> bool
[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]
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,