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.

Returns Arcs, an iterator over Arc values.

fn len(&self) -> usize

Get the length of this ObjectIdentifier in 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: &ObjectIdentifierRef) -> Ordering

impl PartialEq for ObjectIdentifierRef

fn eq(&self, other: &ObjectIdentifierRef) -> bool

impl PartialOrd for ObjectIdentifierRef

fn partial_cmp(&self, other: &ObjectIdentifierRef) -> 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

Auto Trait Implementations

impl !Sized for ObjectIdentifierRef

impl Freeze for ObjectIdentifierRef

impl RefUnwindSafe for ObjectIdentifierRef

impl Send for ObjectIdentifierRef

impl Sync for ObjectIdentifierRef

impl Unpin for ObjectIdentifierRef

impl UnsafeUnpin for ObjectIdentifierRef

impl UnwindSafe for ObjectIdentifierRef

Blanket Implementations

impl<T> Any for ObjectIdentifierRef where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for ObjectIdentifierRef where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for ObjectIdentifierRef where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T