Type Alias const_oid::ObjectIdentifierRef
source · pub type ObjectIdentifierRef<'a> = ObjectIdentifier<&'a [u8]>;
Expand description
OID reference backed by a byte slice.
Aliased Type§
struct ObjectIdentifierRef<'a> { /* private fields */ }
Implementations§
source§impl<'a> ObjectIdentifierRef<'a>
impl<'a> ObjectIdentifierRef<'a>
sourcepub const fn from_bytes_unchecked(buffer: &'a [u8]) -> Self
pub const fn from_bytes_unchecked(buffer: &'a [u8]) -> Self
Initialize OID from a byte slice without validating that it contains a well-formed BER-encoded OID.
Use with care, e.g. to define compact constants.