pub trait DerOrd {
    // Required method
    fn der_cmp(&self, other: &Self) -> Result<Ordering, Error>;
}
Available on crate feature pkcs8 only.
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§

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

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

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

§

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

§

fn der_cmp(&self, other: &Option<T>) -> Result<Ordering, Error>

§

impl<T> DerOrd for PhantomData<T>

Provide a no-op implementation for PhantomData

§

fn der_cmp(&self, _other: &PhantomData<T>) -> Result<Ordering, Error>

Implementors§

§

impl DerOrd for Tag

§

impl DerOrd for Header

§

impl DerOrd for Length

§

impl<T> DerOrd for T