Struct asn1::OwnedBitString
source · pub struct OwnedBitString { /* private fields */ }
Expand description
Represents an ASN.1 BIT STRING
whose contents owned. When used to parse
data this will allocate.
Implementations§
source§impl OwnedBitString
impl OwnedBitString
pub fn new(data: Vec<u8>, padding_bits: u8) -> Option<OwnedBitString>
pub fn as_bitstring(&self) -> BitString<'_>
Trait Implementations§
source§impl Clone for OwnedBitString
impl Clone for OwnedBitString
source§fn clone(&self) -> OwnedBitString
fn clone(&self) -> OwnedBitString
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for OwnedBitString
impl Debug for OwnedBitString
source§impl Hash for OwnedBitString
impl Hash for OwnedBitString
source§impl PartialEq for OwnedBitString
impl PartialEq for OwnedBitString
source§fn eq(&self, other: &OwnedBitString) -> bool
fn eq(&self, other: &OwnedBitString) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a> SimpleAsn1Readable<'a> for OwnedBitString
impl<'a> SimpleAsn1Readable<'a> for OwnedBitString
const TAG: Tag = _
fn parse_data(data: &'a [u8]) -> ParseResult<OwnedBitString>
source§impl SimpleAsn1Writable for OwnedBitString
impl SimpleAsn1Writable for OwnedBitString
const TAG: Tag = _
fn write_data(&self, dest: &mut WriteBuf) -> WriteResult
impl Eq for OwnedBitString
impl StructuralPartialEq for OwnedBitString
Auto Trait Implementations§
impl RefUnwindSafe for OwnedBitString
impl Send for OwnedBitString
impl Sync for OwnedBitString
impl Unpin for OwnedBitString
impl UnwindSafe for OwnedBitString
Blanket Implementations§
source§impl<'a, T> Asn1Readable<'a> for Twhere
T: SimpleAsn1Readable<'a>,
impl<'a, T> Asn1Readable<'a> for Twhere
T: SimpleAsn1Readable<'a>,
source§impl<T> Asn1Writable for Twhere
T: SimpleAsn1Writable,
impl<T> Asn1Writable for Twhere
T: SimpleAsn1Writable,
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more