Struct ObjectIdentifierRef
#[repr(transparent)]
pub struct ObjectIdentifierRef { /* private fields */ }
OID reference type: wrapper for the BER serialization.
Implementations
impl ObjectIdentifierRef
fn from_bytes(ber: &[u8]) -> Result<&Self>Create an
ObjectIdentifierRef, validating that the provided byte slice contains a valid BER/DER encoding.const fn as_bytes(&self) -> &[u8]Get the BER/DER serialization of this OID as bytes.
Note that this encoding omits the ASN.1 tag/length, and only contains the value portion of the encoded OID.
fn arc(&self, index: usize) -> Option<Arc>Return the arc with the given index, if it exists.
fn arcs(&self) -> Arcs<'_>Iterate over the arcs (a.k.a. nodes) of an
ObjectIdentifier.fn len(&self) -> usizeGet the length of this
ObjectIdentifierin arcs.
Trait Implementations
impl AsRef<[u8]> for ObjectIdentifierRef
fn as_ref(&self) -> &[u8]
impl Debug for ObjectIdentifierRef
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Display for ObjectIdentifierRef
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for ObjectIdentifierRef
impl Hash for ObjectIdentifierRef
fn hash<__H: Hasher>(&self, state: &mut __H)
impl Ord for ObjectIdentifierRef
fn cmp(&self, other: &Self) -> Ordering
impl PartialEq for ObjectIdentifierRef
fn eq(&self, other: &Self) -> bool
impl PartialOrd for ObjectIdentifierRef
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
impl StructuralPartialEq for ObjectIdentifierRef
impl<const MAX_SIZE: usize> PartialEq<ObjectIdentifier<MAX_SIZE>> for ObjectIdentifierRef
fn eq(&self, other: &ObjectIdentifier<MAX_SIZE>) -> bool