Struct pkix::types::OctetString
source · pub struct OctetString { /* private fields */ }
Expand description
ASN.1 OCTET STRING
type: owned form..
Octet strings represent contiguous sequences of octets, a.k.a. bytes.
Implementations§
source§impl OctetString
impl OctetString
sourcepub fn into_bytes(self) -> Vec<u8> ⓘ
pub fn into_bytes(self) -> Vec<u8> ⓘ
Take ownership of the octet string.
Trait Implementations§
source§impl AsRef<[u8]> for OctetString
impl AsRef<[u8]> for OctetString
source§impl BERDecodable for OctetString
impl BERDecodable for OctetString
source§fn decode_ber(reader: BERReader<'_, '_>) -> ASN1Result<Self>
fn decode_ber(reader: BERReader<'_, '_>) -> ASN1Result<Self>
source§impl Clone for OctetString
impl Clone for OctetString
source§fn clone(&self) -> OctetString
fn clone(&self) -> OctetString
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 OctetString
impl Debug for OctetString
source§impl Hash for OctetString
impl Hash for OctetString
source§impl Ord for OctetString
impl Ord for OctetString
source§fn cmp(&self, other: &OctetString) -> Ordering
fn cmp(&self, other: &OctetString) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for OctetString
impl PartialEq for OctetString
source§fn eq(&self, other: &OctetString) -> bool
fn eq(&self, other: &OctetString) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for OctetString
impl PartialOrd for OctetString
source§fn partial_cmp(&self, other: &OctetString) -> Option<Ordering>
fn partial_cmp(&self, other: &OctetString) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for OctetString
impl StructuralEq for OctetString
impl StructuralPartialEq for OctetString
Auto Trait Implementations§
impl RefUnwindSafe for OctetString
impl Send for OctetString
impl Sync for OctetString
impl Unpin for OctetString
impl UnwindSafe for OctetString
Blanket Implementations§
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