pub struct AnyRef<'a> { /* private fields */ }
Expand description
ASN.1 ANY
: represents any explicitly tagged ASN.1 value.
This is a zero-copy reference type which borrows from the input data.
Technically ANY
hasn’t been a recommended part of ASN.1 since the X.209
revision from 1988. It was deprecated and replaced by Information Object
Classes in X.680 in 1994, and X.690 no longer refers to it whatsoever.
Nevertheless, this crate defines an ANY
type as it remains a familiar
and useful concept which is still extensively used in things like
PKI-related RFCs.
Implementations§
Trait Implementations§
source§impl<'a, 'arbitrary: 'a> Arbitrary<'arbitrary> for AnyRef<'a>
impl<'a, 'arbitrary: 'a> Arbitrary<'arbitrary> for AnyRef<'a>
source§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self
from the given unstructured data. Read moresource§fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self
from the entirety of the given
unstructured data. Read moresource§impl<'a> DecodeValue<'a> for AnyRef<'a>
impl<'a> DecodeValue<'a> for AnyRef<'a>
source§impl EncodeValue for AnyRef<'_>
impl EncodeValue for AnyRef<'_>
source§impl<'a> From<&'a ObjectIdentifier> for AnyRef<'a>
Available on crate feature oid
only.
impl<'a> From<&'a ObjectIdentifier> for AnyRef<'a>
Available on crate feature
oid
only.source§fn from(oid: &'a ObjectIdentifier) -> AnyRef<'a>
fn from(oid: &'a ObjectIdentifier) -> AnyRef<'a>
Converts to this type from the input type.
source§impl<'a> From<&'a PrintableString> for AnyRef<'a>
Available on crate feature alloc
only.
impl<'a> From<&'a PrintableString> for AnyRef<'a>
Available on crate feature
alloc
only.source§fn from(printable_string: &'a PrintableString) -> AnyRef<'a>
fn from(printable_string: &'a PrintableString) -> AnyRef<'a>
Converts to this type from the input type.
source§impl<'a> From<&'a TeletexString> for AnyRef<'a>
Available on crate feature alloc
only.
impl<'a> From<&'a TeletexString> for AnyRef<'a>
Available on crate feature
alloc
only.source§fn from(teletex_string: &'a TeletexString) -> AnyRef<'a>
fn from(teletex_string: &'a TeletexString) -> AnyRef<'a>
Converts to this type from the input type.
source§impl<'a> From<Ia5StringRef<'a>> for AnyRef<'a>
impl<'a> From<Ia5StringRef<'a>> for AnyRef<'a>
source§fn from(internationalized_string: Ia5StringRef<'a>) -> AnyRef<'a>
fn from(internationalized_string: Ia5StringRef<'a>) -> AnyRef<'a>
Converts to this type from the input type.
source§impl<'a> From<OctetStringRef<'a>> for AnyRef<'a>
impl<'a> From<OctetStringRef<'a>> for AnyRef<'a>
source§fn from(octet_string: OctetStringRef<'a>) -> AnyRef<'a>
fn from(octet_string: OctetStringRef<'a>) -> AnyRef<'a>
Converts to this type from the input type.
source§impl<'a> From<PrintableStringRef<'a>> for AnyRef<'a>
impl<'a> From<PrintableStringRef<'a>> for AnyRef<'a>
source§fn from(printable_string: PrintableStringRef<'a>) -> AnyRef<'a>
fn from(printable_string: PrintableStringRef<'a>) -> AnyRef<'a>
Converts to this type from the input type.
source§impl<'a> From<TeletexStringRef<'a>> for AnyRef<'a>
impl<'a> From<TeletexStringRef<'a>> for AnyRef<'a>
source§fn from(teletex_string: TeletexStringRef<'a>) -> AnyRef<'a>
fn from(teletex_string: TeletexStringRef<'a>) -> AnyRef<'a>
Converts to this type from the input type.
source§impl<'a> From<Utf8StringRef<'a>> for AnyRef<'a>
impl<'a> From<Utf8StringRef<'a>> for AnyRef<'a>
source§fn from(utf_string: Utf8StringRef<'a>) -> AnyRef<'a>
fn from(utf_string: Utf8StringRef<'a>) -> AnyRef<'a>
Converts to this type from the input type.
source§impl<'a> From<VideotexStringRef<'a>> for AnyRef<'a>
impl<'a> From<VideotexStringRef<'a>> for AnyRef<'a>
source§fn from(printable_string: VideotexStringRef<'a>) -> AnyRef<'a>
fn from(printable_string: VideotexStringRef<'a>) -> AnyRef<'a>
Converts to this type from the input type.
source§impl<'a> Ord for AnyRef<'a>
impl<'a> Ord for AnyRef<'a>
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> PartialEq<AnyRef<'a>> for AnyRef<'a>
impl<'a> PartialEq<AnyRef<'a>> for AnyRef<'a>
source§impl<'a> PartialOrd<AnyRef<'a>> for AnyRef<'a>
impl<'a> PartialOrd<AnyRef<'a>> for AnyRef<'a>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl<'a> RefToOwned<'a> for AnyRef<'a>
Available on crate feature alloc
only.
impl<'a> RefToOwned<'a> for AnyRef<'a>
Available on crate feature
alloc
only.source§impl TryFrom<AnyRef<'_>> for ObjectIdentifier
Available on crate feature oid
only.
impl TryFrom<AnyRef<'_>> for ObjectIdentifier
Available on crate feature
oid
only.source§impl<'__der: 'a, 'a> TryFrom<AnyRef<'__der>> for BitStringRef<'a>
impl<'__der: 'a, 'a> TryFrom<AnyRef<'__der>> for BitStringRef<'a>
source§impl<'__der> TryFrom<AnyRef<'__der>> for GeneralizedTime
impl<'__der> TryFrom<AnyRef<'__der>> for GeneralizedTime
source§impl<'__der: 'a, 'a> TryFrom<AnyRef<'__der>> for Ia5StringRef<'a>
impl<'__der: 'a, 'a> TryFrom<AnyRef<'__der>> for Ia5StringRef<'a>
source§impl<'__der> TryFrom<AnyRef<'__der>> for OctetString
Available on crate feature alloc
only.
impl<'__der> TryFrom<AnyRef<'__der>> for OctetString
Available on crate feature
alloc
only.source§impl<'__der: 'a, 'a> TryFrom<AnyRef<'__der>> for OctetStringRef<'a>
impl<'__der: 'a, 'a> TryFrom<AnyRef<'__der>> for OctetStringRef<'a>
source§impl<'__der> TryFrom<AnyRef<'__der>> for PrintableString
Available on crate feature alloc
only.
impl<'__der> TryFrom<AnyRef<'__der>> for PrintableString
Available on crate feature
alloc
only.source§impl<'__der: 'a, 'a> TryFrom<AnyRef<'__der>> for PrintableStringRef<'a>
impl<'__der: 'a, 'a> TryFrom<AnyRef<'__der>> for PrintableStringRef<'a>
source§impl<'__der> TryFrom<AnyRef<'__der>> for TeletexString
Available on crate feature alloc
only.
impl<'__der> TryFrom<AnyRef<'__der>> for TeletexString
Available on crate feature
alloc
only.source§impl<'__der: 'a, 'a> TryFrom<AnyRef<'__der>> for TeletexStringRef<'a>
impl<'__der: 'a, 'a> TryFrom<AnyRef<'__der>> for TeletexStringRef<'a>
source§impl<'__der: 'a, 'a> TryFrom<AnyRef<'__der>> for Utf8StringRef<'a>
impl<'__der: 'a, 'a> TryFrom<AnyRef<'__der>> for Utf8StringRef<'a>
source§impl<'__der: 'a, 'a> TryFrom<AnyRef<'__der>> for VideotexStringRef<'a>
impl<'__der: 'a, 'a> TryFrom<AnyRef<'__der>> for VideotexStringRef<'a>
source§impl<'a> TryFrom<AnyRef<'a>> for SystemTime
Available on crate feature std
only.
impl<'a> TryFrom<AnyRef<'a>> for SystemTime
Available on crate feature
std
only.