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§
source§impl<'a, T: Clone> Clone for ContextSpecificRef<'a, T>
impl<'a, T: Clone> Clone for ContextSpecificRef<'a, T>
source§fn clone(&self) -> ContextSpecificRef<'a, T>
fn clone(&self) -> ContextSpecificRef<'a, T>
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<'a, T: Debug> Debug for ContextSpecificRef<'a, T>
impl<'a, T: Debug> Debug for ContextSpecificRef<'a, T>
source§impl<T> EncodeValue for ContextSpecificRef<'_, T>where
T: EncodeValue + Tagged,
impl<T> EncodeValue for ContextSpecificRef<'_, T>where
T: EncodeValue + Tagged,
source§impl<'a, T: Ord> Ord for ContextSpecificRef<'a, T>
impl<'a, T: Ord> Ord for ContextSpecificRef<'a, T>
source§fn cmp(&self, other: &ContextSpecificRef<'a, T>) -> Ordering
fn cmp(&self, other: &ContextSpecificRef<'a, T>) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<'a, T: PartialEq> PartialEq for ContextSpecificRef<'a, T>
impl<'a, T: PartialEq> PartialEq for ContextSpecificRef<'a, T>
source§impl<'a, T: PartialOrd> PartialOrd for ContextSpecificRef<'a, T>
impl<'a, T: PartialOrd> PartialOrd for ContextSpecificRef<'a, T>
source§impl<T> Tagged for ContextSpecificRef<'_, T>where
T: Tagged,
impl<T> Tagged for ContextSpecificRef<'_, T>where
T: Tagged,
source§impl<T> ValueOrd for ContextSpecificRef<'_, T>
impl<T> ValueOrd for ContextSpecificRef<'_, T>
impl<'a, T: Copy> Copy for ContextSpecificRef<'a, T>
impl<'a, T: Eq> Eq for ContextSpecificRef<'a, T>
impl<'a, T> StructuralPartialEq for ContextSpecificRef<'a, T>
Auto Trait Implementations§
impl<'a, T> Freeze for ContextSpecificRef<'a, T>
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§
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)