Struct der::asn1::OctetString
source · pub struct OctetString<'a> { /* private fields */ }
Expand description
ASN.1 OCTET STRING
type.
Implementations§
source§impl<'a> OctetString<'a>
impl<'a> OctetString<'a>
Trait Implementations§
source§impl AsRef<[u8]> for OctetString<'_>
impl AsRef<[u8]> for OctetString<'_>
source§impl<'a> Clone for OctetString<'a>
impl<'a> Clone for OctetString<'a>
source§fn clone(&self) -> OctetString<'a>
fn clone(&self) -> OctetString<'a>
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<'a> Debug for OctetString<'a>
impl<'a> Debug for OctetString<'a>
source§impl<'a> DecodeValue<'a> for OctetString<'a>
impl<'a> DecodeValue<'a> for OctetString<'a>
source§impl EncodeValue for OctetString<'_>
impl EncodeValue for OctetString<'_>
source§impl<'a> From<&OctetString<'a>> for OctetString<'a>
impl<'a> From<&OctetString<'a>> for OctetString<'a>
source§fn from(value: &OctetString<'a>) -> OctetString<'a>
fn from(value: &OctetString<'a>) -> OctetString<'a>
Converts to this type from the input type.
source§impl<'a> From<OctetString<'a>> for &'a [u8]
impl<'a> From<OctetString<'a>> for &'a [u8]
source§fn from(octet_string: OctetString<'a>) -> &'a [u8]
fn from(octet_string: OctetString<'a>) -> &'a [u8]
Converts to this type from the input type.
source§impl<'a> From<OctetString<'a>> for Any<'a>
impl<'a> From<OctetString<'a>> for Any<'a>
source§fn from(octet_string: OctetString<'a>) -> Any<'a>
fn from(octet_string: OctetString<'a>) -> Any<'a>
Converts to this type from the input type.
source§impl<'a> Ord for OctetString<'a>
impl<'a> Ord for OctetString<'a>
source§fn cmp(&self, other: &OctetString<'a>) -> Ordering
fn cmp(&self, other: &OctetString<'a>) -> 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<'a> PartialEq<OctetString<'a>> for OctetString<'a>
impl<'a> PartialEq<OctetString<'a>> for OctetString<'a>
source§fn eq(&self, other: &OctetString<'a>) -> bool
fn eq(&self, other: &OctetString<'a>) -> bool
source§impl<'a> PartialOrd<OctetString<'a>> for OctetString<'a>
impl<'a> PartialOrd<OctetString<'a>> for OctetString<'a>
source§fn partial_cmp(&self, other: &OctetString<'a>) -> Option<Ordering>
fn partial_cmp(&self, other: &OctetString<'a>) -> 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 more