pub trait ValueOrd {
    fn value_cmp(&self, other: &Self) -> Result<Ordering, Error>;
}
Available on crate feature pkcs8 only.
Expand description

DER value ordering trait.

Compares the ordering of the value portion of TLV-encoded DER productions.

Required Methods§

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

Return an Ordering between value portion of TLV-encoded self and other when serialized as ASN.1 DER.

Implementations on Foreign Types§

§

impl ValueOrd for i16

§

fn value_cmp(&self, other: &i16) -> Result<Ordering, Error>

§

impl ValueOrd for u32

§

fn value_cmp(&self, other: &u32) -> Result<Ordering, Error>

§

impl<T, const N: usize> ValueOrd for [T; N]where
    T: DerOrd,

§

fn value_cmp(&self, other: &[T; N]) -> Result<Ordering, Error>

§

impl ValueOrd for u128

§

fn value_cmp(&self, other: &u128) -> Result<Ordering, Error>

§

impl ValueOrd for i128

§

fn value_cmp(&self, other: &i128) -> Result<Ordering, Error>

§

impl ValueOrd for u8

§

fn value_cmp(&self, other: &u8) -> Result<Ordering, Error>

§

impl ValueOrd for i8

§

fn value_cmp(&self, other: &i8) -> Result<Ordering, Error>

§

impl<T> ValueOrd for Vec<T, Global>where
    T: DerOrd,

Available on crate feature alloc only.
§

fn value_cmp(&self, other: &Vec<T, Global>) -> Result<Ordering, Error>

§

impl ValueOrd for i32

§

fn value_cmp(&self, other: &i32) -> Result<Ordering, Error>

§

impl ValueOrd for u16

§

fn value_cmp(&self, other: &u16) -> Result<Ordering, Error>

§

impl ValueOrd for u64

§

fn value_cmp(&self, other: &u64) -> Result<Ordering, Error>

§

impl ValueOrd for i64

§

fn value_cmp(&self, other: &i64) -> Result<Ordering, Error>

Implementors§

§

impl ValueOrd for AlgorithmIdentifier<'_>

§

impl ValueOrd for SubjectPublicKeyInfo<'_>

§

impl ValueOrd for BitString

Available on crate feature alloc only.
§

impl ValueOrd for BitStringRef<'_>

§

impl ValueOrd for AnyRef<'_>

§

impl<'a, T> ValueOrd for EncodeValueRef<'a, T>where
    T: ValueOrd,

§

impl<T> ValueOrd for ContextSpecific<T>where
    T: EncodeValue + ValueOrd + Tagged,

§

impl<T> ValueOrd for SetOfVec<T>where
    T: DerOrd,

Available on crate feature alloc only.
§

impl<T> ValueOrd for Twhere
    T: OrdIsValueOrd,

§

impl<T, const N: usize> ValueOrd for SequenceOf<T, N>where
    T: DerOrd,

§

impl<T, const N: usize> ValueOrd for SetOf<T, N>where
    T: DerOrd,