#[repr(transparent)]pub struct SequenceRef {
body: BytesRef,
}Expand description
The SequenceRef type provides raw access to the octets which comprise a
DER-encoded SEQUENCE.
This is a zero-copy reference type which borrows from the input data.
Fields§
§body: BytesRefBody of the SEQUENCE.
Implementations§
Source§impl SequenceRef
impl SequenceRef
Sourcefn from_bytes_ref(bytes_ref: &BytesRef) -> &Self
fn from_bytes_ref(bytes_ref: &BytesRef) -> &Self
Create a SequenceRef from a BytesRef.
Implemented as an inherent method to keep BytesRef out of the public API.
Trait Implementations§
Source§impl AsRef<[u8]> for SequenceRef
impl AsRef<[u8]> for SequenceRef
Source§impl Debug for SequenceRef
impl Debug for SequenceRef
Source§impl<'a> DecodeValue<'a> for &'a SequenceRef
impl<'a> DecodeValue<'a> for &'a SequenceRef
Source§impl EncodeValue for SequenceRef
impl EncodeValue for SequenceRef
Source§impl Ord for SequenceRef
impl Ord for SequenceRef
Source§impl PartialEq for SequenceRef
impl PartialEq for SequenceRef
Source§fn eq(&self, other: &SequenceRef) -> bool
fn eq(&self, other: &SequenceRef) -> bool
Tests for
self and other values to be equal, and is used by ==.