Trait ValueOrd

Source
pub trait ValueOrd {
    // Required method
    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§

Source

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.

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 ValueOrd for i8

Source§

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

Source§

impl ValueOrd for i16

Source§

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

Source§

impl ValueOrd for i32

Source§

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

Source§

impl ValueOrd for i64

Source§

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

Source§

impl ValueOrd for i128

Source§

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

Source§

impl ValueOrd for u8

Source§

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

Source§

impl ValueOrd for u16

Source§

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

Source§

impl ValueOrd for u32

Source§

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

Source§

impl ValueOrd for u64

Source§

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

Source§

impl ValueOrd for u128

Source§

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

Source§

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

Available on crate feature alloc only.
Source§

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

Source§

impl<T> ValueOrd for PhantomData<T>

Provide a no-op implementation for PhantomData

Source§

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

Source§

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

Source§

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

Implementors§

Source§

impl ValueOrd for BitStringRef<'_>

Source§

impl ValueOrd for BitString

Source§

impl ValueOrd for Any

Source§

impl ValueOrd for AnyRef<'_>

Source§

impl<'a, Params, Key> ValueOrd for SubjectPublicKeyInfo<Params, Key>
where Params: Choice<'a> + DerOrd + Encode, Key: ValueOrd,

Source§

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

Source§

impl<Params> ValueOrd for AlgorithmIdentifier<Params>
where Params: DerOrd,

Source§

impl<T> ValueOrd for ContextSpecific<T>

Source§

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

Available on crate feature alloc only.
Source§

impl<T> ValueOrd for T
where T: OrdIsValueOrd,

Source§

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

Source§

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