Struct der::asn1::OctetStringRef
source · pub struct OctetStringRef<'a> { /* private fields */ }
Expand description
ASN.1 OCTET STRING
type: borrowed form.
Octet strings represent contiguous sequences of octets, a.k.a. bytes.
This is a zero-copy reference type which borrows from the input data.
Implementations§
source§impl<'a> OctetStringRef<'a>
impl<'a> OctetStringRef<'a>
Trait Implementations§
source§impl AsRef<[u8]> for OctetStringRef<'_>
impl AsRef<[u8]> for OctetStringRef<'_>
source§impl<'a> Clone for OctetStringRef<'a>
impl<'a> Clone for OctetStringRef<'a>
source§fn clone(&self) -> OctetStringRef<'a>
fn clone(&self) -> OctetStringRef<'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 OctetStringRef<'a>
impl<'a> Debug for OctetStringRef<'a>
source§impl<'a> DecodeValue<'a> for OctetStringRef<'a>
impl<'a> DecodeValue<'a> for OctetStringRef<'a>
source§impl EncodeValue for OctetStringRef<'_>
impl EncodeValue for OctetStringRef<'_>
source§impl<'a> From<&'a OctetString> for OctetStringRef<'a>
impl<'a> From<&'a OctetString> for OctetStringRef<'a>
source§fn from(octet_string: &'a OctetString) -> OctetStringRef<'a>
fn from(octet_string: &'a OctetString) -> OctetStringRef<'a>
Converts to this type from the input type.
source§impl<'a> From<&OctetStringRef<'a>> for OctetStringRef<'a>
impl<'a> From<&OctetStringRef<'a>> for OctetStringRef<'a>
source§fn from(value: &OctetStringRef<'a>) -> OctetStringRef<'a>
fn from(value: &OctetStringRef<'a>) -> OctetStringRef<'a>
Converts to this type from the input type.
source§impl<'a> From<OctetStringRef<'a>> for &'a [u8]
impl<'a> From<OctetStringRef<'a>> for &'a [u8]
source§fn from(octet_string: OctetStringRef<'a>) -> &'a [u8]
fn from(octet_string: OctetStringRef<'a>) -> &'a [u8]
Converts to this type from the input type.
source§impl<'a> From<OctetStringRef<'a>> for AnyRef<'a>
impl<'a> From<OctetStringRef<'a>> for AnyRef<'a>
source§fn from(octet_string: OctetStringRef<'a>) -> AnyRef<'a>
fn from(octet_string: OctetStringRef<'a>) -> AnyRef<'a>
Converts to this type from the input type.
source§impl<'a> Ord for OctetStringRef<'a>
impl<'a> Ord for OctetStringRef<'a>
source§fn cmp(&self, other: &OctetStringRef<'a>) -> Ordering
fn cmp(&self, other: &OctetStringRef<'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<OctetStringRef<'a>> for OctetStringRef<'a>
impl<'a> PartialEq<OctetStringRef<'a>> for OctetStringRef<'a>
source§fn eq(&self, other: &OctetStringRef<'a>) -> bool
fn eq(&self, other: &OctetStringRef<'a>) -> bool
source§impl<'a> PartialOrd<OctetStringRef<'a>> for OctetStringRef<'a>
impl<'a> PartialOrd<OctetStringRef<'a>> for OctetStringRef<'a>
source§fn partial_cmp(&self, other: &OctetStringRef<'a>) -> Option<Ordering>
fn partial_cmp(&self, other: &OctetStringRef<'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