der

Trait DerOrd

Source
pub trait DerOrd {
    // Required method
    fn der_cmp(&self, other: &Self) -> Result<Ordering>;
}
Expand description

DER ordering trait.

Compares the ordering of two values based on their ASN.1 DER serializations.

This is used by the DER encoding for SET OF in order to establish an ordering for the elements of sets.

Required Methods§

Source

fn der_cmp(&self, other: &Self) -> Result<Ordering>

Return an Ordering between self and other when serialized as ASN.1 DER.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<T> DerOrd for Option<T>
where T: DerOrd,

Source§

fn der_cmp(&self, other: &Self) -> Result<Ordering>

Source§

impl<T> DerOrd for PhantomData<T>

Provide a no-op implementation for PhantomData

Source§

fn der_cmp(&self, _other: &Self) -> Result<Ordering>

Implementors§