Struct der::asn1::ContextSpecificRef
source · [−]pub struct ContextSpecificRef<'a, T> {
pub tag_number: TagNumber,
pub tag_mode: TagMode,
pub value: &'a T,
}
Expand description
Context-specific field reference.
This type encodes a field which is specific to a particular context
and is identified by a TagNumber
.
Fields
tag_number: TagNumber
Context-specific tag number sans the leading 0b10000000
class
identifier bit and 0b100000
constructed flag.
tag_mode: TagMode
Tag mode: EXPLICIT
VS IMPLICIT
.
value: &'a T
Value of the field.
Trait Implementations
sourceimpl<'a, T: Clone> Clone for ContextSpecificRef<'a, T>
impl<'a, T: Clone> Clone for ContextSpecificRef<'a, T>
sourcefn clone(&self) -> ContextSpecificRef<'a, T>
fn clone(&self) -> ContextSpecificRef<'a, T>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'a, T: Debug> Debug for ContextSpecificRef<'a, T>
impl<'a, T: Debug> Debug for ContextSpecificRef<'a, T>
sourceimpl<T> EncodeValue for ContextSpecificRef<'_, T> where
T: EncodeValue + Tagged,
impl<T> EncodeValue for ContextSpecificRef<'_, T> where
T: EncodeValue + Tagged,
sourceimpl<'a, T: Ord> Ord for ContextSpecificRef<'a, T>
impl<'a, T: Ord> Ord for ContextSpecificRef<'a, T>
sourceimpl<'a, T: PartialEq> PartialEq<ContextSpecificRef<'a, T>> for ContextSpecificRef<'a, T>
impl<'a, T: PartialEq> PartialEq<ContextSpecificRef<'a, T>> for ContextSpecificRef<'a, T>
sourcefn eq(&self, other: &ContextSpecificRef<'a, T>) -> bool
fn eq(&self, other: &ContextSpecificRef<'a, T>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ContextSpecificRef<'a, T>) -> bool
fn ne(&self, other: &ContextSpecificRef<'a, T>) -> bool
This method tests for !=
.
sourceimpl<'a, T: PartialOrd> PartialOrd<ContextSpecificRef<'a, T>> for ContextSpecificRef<'a, T>
impl<'a, T: PartialOrd> PartialOrd<ContextSpecificRef<'a, T>> for ContextSpecificRef<'a, T>
sourcefn partial_cmp(&self, other: &ContextSpecificRef<'a, T>) -> Option<Ordering>
fn partial_cmp(&self, other: &ContextSpecificRef<'a, T>) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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 more
sourceimpl<T> Tagged for ContextSpecificRef<'_, T> where
T: Tagged,
impl<T> Tagged for ContextSpecificRef<'_, T> where
T: Tagged,
sourceimpl<T> ValueOrd for ContextSpecificRef<'_, T> where
T: EncodeValue + ValueOrd + Tagged,
impl<T> ValueOrd for ContextSpecificRef<'_, T> where
T: EncodeValue + ValueOrd + Tagged,
impl<'a, T: Copy> Copy for ContextSpecificRef<'a, T>
impl<'a, T: Eq> Eq for ContextSpecificRef<'a, T>
impl<'a, T> StructuralEq for ContextSpecificRef<'a, T>
impl<'a, T> StructuralPartialEq for ContextSpecificRef<'a, T>
Auto Trait Implementations
impl<'a, T> RefUnwindSafe for ContextSpecificRef<'a, T> where
T: RefUnwindSafe,
impl<'a, T> Send for ContextSpecificRef<'a, T> where
T: Sync,
impl<'a, T> Sync for ContextSpecificRef<'a, T> where
T: Sync,
impl<'a, T> Unpin for ContextSpecificRef<'a, T>
impl<'a, T> UnwindSafe for ContextSpecificRef<'a, T> where
T: RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more