Enum asn1rs::model::ObjectIdentifierComponent
source · pub enum ObjectIdentifierComponent {
NameForm(String),
NumberForm(u64),
NameAndNumberForm(String, u64),
}
Expand description
The object-identifier is described in ITU-T X.680 | ISO/IEC 8824-1:2015 in chapter 32. The XML-related definitions as well as’DefinedValue’ is ignored by this implementation.
Variants§
Trait Implementations§
source§impl Clone for ObjectIdentifierComponent
impl Clone for ObjectIdentifierComponent
source§fn clone(&self) -> ObjectIdentifierComponent
fn clone(&self) -> ObjectIdentifierComponent
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 Debug for ObjectIdentifierComponent
impl Debug for ObjectIdentifierComponent
source§impl PartialEq<ObjectIdentifierComponent> for ObjectIdentifierComponent
impl PartialEq<ObjectIdentifierComponent> for ObjectIdentifierComponent
source§fn eq(&self, other: &ObjectIdentifierComponent) -> bool
fn eq(&self, other: &ObjectIdentifierComponent) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<ObjectIdentifierComponent> for ObjectIdentifierComponent
impl PartialOrd<ObjectIdentifierComponent> for ObjectIdentifierComponent
source§fn partial_cmp(&self, other: &ObjectIdentifierComponent) -> Option<Ordering>
fn partial_cmp(&self, other: &ObjectIdentifierComponent) -> 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 moreimpl Eq for ObjectIdentifierComponent
impl StructuralEq for ObjectIdentifierComponent
impl StructuralPartialEq for ObjectIdentifierComponent
Auto Trait Implementations§
impl RefUnwindSafe for ObjectIdentifierComponent
impl Send for ObjectIdentifierComponent
impl Sync for ObjectIdentifierComponent
impl Unpin for ObjectIdentifierComponent
impl UnwindSafe for ObjectIdentifierComponent
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.