Any

Struct Any 

pub struct Any<'a> {
    pub header: Header<'a>,
    pub data: &'a [u8],
}
Available on crate feature crypto only.
Expand description

The Any object is not strictly an ASN.1 type, but holds a generic description of any object that could be encoded.

It contains a header, and either a reference to or owned data for the object content.

Note: this type is only provided in borrowed version (i.e. it cannot own the inner data).

Fields§

§header: Header<'a>

The object header

§data: &'a [u8]

The object contents

Implementations§

§

impl<'a> Any<'a>

pub const fn new(header: Header<'a>, data: &'a [u8]) -> Any<'a>

Available on (crate features rustls or boring or acme) and crate feature rustls only.

Create a new Any from BER/DER header and content

pub const fn from_tag_and_data(tag: Tag, data: &'a [u8]) -> Any<'a>

Available on (crate features rustls or boring or acme) and crate feature rustls only.

Create a new Any from a tag, and BER/DER content

pub const fn class(&self) -> Class

Available on (crate features rustls or boring or acme) and crate feature rustls only.

Return the Class of this object

pub fn with_class(self, class: Class) -> Any<'a>

Available on (crate features rustls or boring or acme) and crate feature rustls only.

Update the class of the current object

pub const fn tag(&self) -> Tag

Available on (crate features rustls or boring or acme) and crate feature rustls only.

Return the Tag of this object

pub fn with_tag(self, tag: Tag) -> Any<'a>

Available on (crate features rustls or boring or acme) and crate feature rustls only.

Update the tag of the current object

pub fn as_bytes(&self) -> &'a [u8]

Available on (crate features rustls or boring or acme) and crate feature rustls only.

Get the bytes representation of the content

pub fn parse_ber<T>(&self) -> Result<(&'a [u8], T), Err<Error>>
where T: FromBer<'a>,

Available on (crate features rustls or boring or acme) and crate feature rustls only.

pub fn from_ber_and_then<F, T, E>( class: Class, tag: u32, bytes: &'a [u8], op: F, ) -> Result<(&'a [u8], T), Err<E>>
where F: FnOnce(&'a [u8]) -> Result<(&'a [u8], T), Err<E>>, E: From<Error>,

Available on (crate features rustls or boring or acme) and crate feature rustls only.

Parse a BER value and apply the provided parsing function to content

After parsing, the sequence object and header are discarded.

pub fn from_der_and_then<F, T, E>( class: Class, tag: u32, bytes: &'a [u8], op: F, ) -> Result<(&'a [u8], T), Err<E>>
where F: FnOnce(&'a [u8]) -> Result<(&'a [u8], T), Err<E>>, E: From<Error>,

Available on (crate features rustls or boring or acme) and crate feature rustls only.

Parse a DER value and apply the provided parsing function to content

After parsing, the sequence object and header are discarded.

pub fn parse_der<T>(&self) -> Result<(&'a [u8], T), Err<Error>>
where T: FromDer<'a>,

Available on (crate features rustls or boring or acme) and crate feature rustls only.

pub fn parse_ber_content<'i>( i: &'i [u8], header: &Header<'_>, ) -> Result<(&'i [u8], &'i [u8]), Err<Error>>

Available on (crate features rustls or boring or acme) and crate feature rustls only.

Get the content following a BER header

pub fn parse_der_content<'i>( i: &'i [u8], header: &Header<'_>, ) -> Result<(&'i [u8], &'i [u8]), Err<Error>>

Available on (crate features rustls or boring or acme) and crate feature rustls only.

Get the content following a DER header

§

impl<'a> Any<'a>

pub fn bitstring(self) -> Result<BitString<'a>, Error>

Available on (crate features rustls or boring or acme) and crate feature rustls only.

Attempt to convert object to BitString<'a> (ASN.1 type: BIT STRING).

pub fn bmpstring(self) -> Result<BmpString<'a>, Error>

Available on (crate features rustls or boring or acme) and crate feature rustls only.

Attempt to convert object to BmpString<'a> (ASN.1 type: BMPString).

pub fn bool(self) -> Result<bool, Error>

Available on (crate features rustls or boring or acme) and crate feature rustls only.

Attempt to convert object to bool (ASN.1 type: BOOLEAN).

pub fn boolean(self) -> Result<Boolean, Error>

Available on (crate features rustls or boring or acme) and crate feature rustls only.

Attempt to convert object to Boolean (ASN.1 type: BOOLEAN).

pub fn embedded_pdv(self) -> Result<EmbeddedPdv<'a>, Error>

Available on (crate features rustls or boring or acme) and crate feature rustls only.

Attempt to convert object to EmbeddedPdv<'a> (ASN.1 type: EMBEDDED PDV).

pub fn enumerated(self) -> Result<Enumerated, Error>

Available on (crate features rustls or boring or acme) and crate feature rustls only.

Attempt to convert object to Enumerated (ASN.1 type: ENUMERATED).

pub fn generalizedtime(self) -> Result<GeneralizedTime, Error>

Available on (crate features rustls or boring or acme) and crate feature rustls only.

Attempt to convert object to GeneralizedTime (ASN.1 type: GeneralizedTime).

pub fn generalstring(self) -> Result<GeneralString<'a>, Error>

Available on (crate features rustls or boring or acme) and crate feature rustls only.

Attempt to convert object to GeneralString<'a> (ASN.1 type: GeneralString).

pub fn graphicstring(self) -> Result<GraphicString<'a>, Error>

Available on (crate features rustls or boring or acme) and crate feature rustls only.

Attempt to convert object to GraphicString<'a> (ASN.1 type: GraphicString).

pub fn i8(self) -> Result<i8, Error>

Available on (crate features rustls or boring or acme) and crate feature rustls only.

Attempt to convert object to i8 (ASN.1 type: INTEGER).

pub fn i16(self) -> Result<i16, Error>

Available on (crate features rustls or boring or acme) and crate feature rustls only.

Attempt to convert object to i16 (ASN.1 type: INTEGER).

pub fn i32(self) -> Result<i32, Error>

Available on (crate features rustls or boring or acme) and crate feature rustls only.

Attempt to convert object to i32 (ASN.1 type: INTEGER).

pub fn i64(self) -> Result<i64, Error>

Available on (crate features rustls or boring or acme) and crate feature rustls only.

Attempt to convert object to i64 (ASN.1 type: INTEGER).

pub fn i128(self) -> Result<i128, Error>

Available on (crate features rustls or boring or acme) and crate feature rustls only.

Attempt to convert object to i128 (ASN.1 type: INTEGER).

pub fn ia5string(self) -> Result<Ia5String<'a>, Error>

Available on (crate features rustls or boring or acme) and crate feature rustls only.

Attempt to convert object to Ia5String<'a> (ASN.1 type: IA5String).

pub fn integer(self) -> Result<Integer<'a>, Error>

Available on (crate features rustls or boring or acme) and crate feature rustls only.

Attempt to convert object to Integer<'a> (ASN.1 type: INTEGER).

pub fn null(self) -> Result<Null, Error>

Available on (crate features rustls or boring or acme) and crate feature rustls only.

Attempt to convert object to Null (ASN.1 type: NULL).

pub fn numericstring(self) -> Result<NumericString<'a>, Error>

Available on (crate features rustls or boring or acme) and crate feature rustls only.

Attempt to convert object to NumericString<'a> (ASN.1 type: NumericString).

pub fn objectdescriptor(self) -> Result<ObjectDescriptor<'a>, Error>

Available on (crate features rustls or boring or acme) and crate feature rustls only.

Attempt to convert object to ObjectDescriptor<'a> (ASN.1 type: ObjectDescriptor).

pub fn octetstring(self) -> Result<OctetString<'a>, Error>

Available on (crate features rustls or boring or acme) and crate feature rustls only.

Attempt to convert object to OctetString<'a> (ASN.1 type: OCTET STRING).

pub fn oid(self) -> Result<Oid<'a>, Error>

Available on (crate features rustls or boring or acme) and crate feature rustls only.

Attempt to convert object to Oid<'a> (ASN.1 type: OBJECT IDENTIFIER).

pub fn real(self) -> Result<Real, Error>

Available on (crate features rustls or boring or acme) and crate feature rustls only.

Attempt to convert object to Real (ASN.1 type: REAL).

pub fn relative_oid(self) -> Result<Oid<'a>, Error>

Available on (crate features rustls or boring or acme) and crate feature rustls only.

Attempt to convert object to Oid (ASN.1 type: RELATIVE-OID).

pub fn printablestring(self) -> Result<PrintableString<'a>, Error>

Available on (crate features rustls or boring or acme) and crate feature rustls only.

Attempt to convert object to PrintableString<'a> (ASN.1 type: PrintableString).

pub fn sequence(self) -> Result<Sequence<'a>, Error>

Available on (crate features rustls or boring or acme) and crate feature rustls only.

Attempt to convert object to Sequence<'a> (ASN.1 type: SEQUENCE).

pub fn set(self) -> Result<Set<'a>, Error>

Available on (crate features rustls or boring or acme) and crate feature rustls only.

Attempt to convert object to Set<'a> (ASN.1 type: SET).

pub fn str(self) -> Result<&'a str, Error>

Available on (crate features rustls or boring or acme) and crate feature rustls only.

Attempt to convert object to &'a str (ASN.1 type: UTF8String).

pub fn string(self) -> Result<String, Error>

Available on (crate features rustls or boring or acme) and crate feature rustls only.

Attempt to convert object to String (ASN.1 type: UTF8String).

pub fn teletexstring(self) -> Result<TeletexString<'a>, Error>

Available on (crate features rustls or boring or acme) and crate feature rustls only.

Attempt to convert object to TeletexString<'a> (ASN.1 type: TeletexString).

pub fn u8(self) -> Result<u8, Error>

Available on (crate features rustls or boring or acme) and crate feature rustls only.

Attempt to convert object to u8 (ASN.1 type: INTEGER).

pub fn u16(self) -> Result<u16, Error>

Available on (crate features rustls or boring or acme) and crate feature rustls only.

Attempt to convert object to u16 (ASN.1 type: INTEGER).

pub fn u32(self) -> Result<u32, Error>

Available on (crate features rustls or boring or acme) and crate feature rustls only.

Attempt to convert object to u32 (ASN.1 type: INTEGER).

pub fn u64(self) -> Result<u64, Error>

Available on (crate features rustls or boring or acme) and crate feature rustls only.

Attempt to convert object to u64 (ASN.1 type: INTEGER).

pub fn u128(self) -> Result<u128, Error>

Available on (crate features rustls or boring or acme) and crate feature rustls only.

Attempt to convert object to u128 (ASN.1 type: INTEGER).

pub fn universalstring(self) -> Result<UniversalString<'a>, Error>

Available on (crate features rustls or boring or acme) and crate feature rustls only.

Attempt to convert object to UniversalString<'a> (ASN.1 type: UniversalString).

pub fn utctime(self) -> Result<UtcTime, Error>

Available on (crate features rustls or boring or acme) and crate feature rustls only.

Attempt to convert object to UtcTime (ASN.1 type: UTCTime).

pub fn utf8string(self) -> Result<Utf8String<'a>, Error>

Available on (crate features rustls or boring or acme) and crate feature rustls only.

Attempt to convert object to Utf8String<'a> (ASN.1 type: UTF8String).

pub fn videotexstring(self) -> Result<VideotexString<'a>, Error>

Available on (crate features rustls or boring or acme) and crate feature rustls only.

Attempt to convert object to VideotexString<'a> (ASN.1 type: VideotexString).

pub fn visiblestring(self) -> Result<VisibleString<'a>, Error>

Available on (crate features rustls or boring or acme) and crate feature rustls only.

Attempt to convert object to VisibleString<'a> (ASN.1 type: VisibleString).

pub fn as_bitstring(&self) -> Result<BitString<'_>, Error>

Available on (crate features rustls or boring or acme) and crate feature rustls only.

Attempt to create ASN.1 type BITSTRING from this object.

pub fn as_bmpstring(&self) -> Result<BmpString<'_>, Error>

Available on (crate features rustls or boring or acme) and crate feature rustls only.

Attempt to create ASN.1 type BMPString from this object.

pub fn as_bool(&self) -> Result<bool, Error>

Available on (crate features rustls or boring or acme) and crate feature rustls only.

Attempt to create ASN.1 type BOOLEAN from this object.

pub fn as_boolean(&self) -> Result<Boolean, Error>

Available on (crate features rustls or boring or acme) and crate feature rustls only.

Attempt to create ASN.1 type BOOLEAN from this object.

pub fn as_embedded_pdv(&self) -> Result<EmbeddedPdv<'_>, Error>

Available on (crate features rustls or boring or acme) and crate feature rustls only.

Attempt to create ASN.1 type EMBEDDED PDV from this object.

pub fn as_endofcontent(&self) -> Result<EndOfContent, Error>

Available on (crate features rustls or boring or acme) and crate feature rustls only.

Attempt to create ASN.1 type END OF CONTENT (not a real ASN.1 type) from this object.

pub fn as_enumerated(&self) -> Result<Enumerated, Error>

Available on (crate features rustls or boring or acme) and crate feature rustls only.

Attempt to create ASN.1 type ENUMERATED from this object.

pub fn as_generalizedtime(&self) -> Result<GeneralizedTime, Error>

Available on (crate features rustls or boring or acme) and crate feature rustls only.

Attempt to create ASN.1 type GeneralizedTime from this object.

pub fn as_generalstring(&self) -> Result<GeneralString<'_>, Error>

Available on (crate features rustls or boring or acme) and crate feature rustls only.

Attempt to create ASN.1 type GeneralString from this object.

pub fn as_graphicstring(&self) -> Result<GraphicString<'_>, Error>

Available on (crate features rustls or boring or acme) and crate feature rustls only.

Attempt to create ASN.1 type GraphicString from this object.

pub fn as_i8(&self) -> Result<i8, Error>

Available on (crate features rustls or boring or acme) and crate feature rustls only.

Attempt to create ASN.1 type INTEGER from this object.

pub fn as_i16(&self) -> Result<i16, Error>

Available on (crate features rustls or boring or acme) and crate feature rustls only.

Attempt to create ASN.1 type INTEGER from this object.

pub fn as_i32(&self) -> Result<i32, Error>

Available on (crate features rustls or boring or acme) and crate feature rustls only.

Attempt to create ASN.1 type INTEGER from this object.

pub fn as_i64(&self) -> Result<i64, Error>

Available on (crate features rustls or boring or acme) and crate feature rustls only.

Attempt to create ASN.1 type INTEGER from this object.

pub fn as_i128(&self) -> Result<i128, Error>

Available on (crate features rustls or boring or acme) and crate feature rustls only.

Attempt to create ASN.1 type INTEGER from this object.

pub fn as_ia5string(&self) -> Result<Ia5String<'_>, Error>

Available on (crate features rustls or boring or acme) and crate feature rustls only.

Attempt to create ASN.1 type IA5String from this object.

pub fn as_integer(&self) -> Result<Integer<'_>, Error>

Available on (crate features rustls or boring or acme) and crate feature rustls only.

Attempt to create ASN.1 type INTEGER from this object.

pub fn as_null(&self) -> Result<Null, Error>

Available on (crate features rustls or boring or acme) and crate feature rustls only.

Attempt to create ASN.1 type NULL from this object.

pub fn as_numericstring(&self) -> Result<NumericString<'_>, Error>

Available on (crate features rustls or boring or acme) and crate feature rustls only.

Attempt to create ASN.1 type NumericString from this object.

pub fn as_objectdescriptor(&self) -> Result<ObjectDescriptor<'_>, Error>

Available on (crate features rustls or boring or acme) and crate feature rustls only.

Attempt to create ASN.1 type OBJECT IDENTIFIER from this object.

pub fn as_octetstring(&self) -> Result<OctetString<'_>, Error>

Available on (crate features rustls or boring or acme) and crate feature rustls only.

Attempt to create ASN.1 type OCTET STRING from this object.

pub fn as_oid(&self) -> Result<Oid<'_>, Error>

Available on (crate features rustls or boring or acme) and crate feature rustls only.

Attempt to create ASN.1 type OBJECT IDENTIFIER from this object.

pub fn as_real(&self) -> Result<Real, Error>

Available on (crate features rustls or boring or acme) and crate feature rustls only.

Attempt to create ASN.1 type REAL from this object.

pub fn as_relative_oid(&self) -> Result<Oid<'a>, Error>

Available on (crate features rustls or boring or acme) and crate feature rustls only.

Attempt to create ASN.1 type RELATIVE-OID from this object.

pub fn as_printablestring(&self) -> Result<PrintableString<'_>, Error>

Available on (crate features rustls or boring or acme) and crate feature rustls only.

Attempt to create ASN.1 type PrintableString from this object.

pub fn as_sequence(&self) -> Result<Sequence<'_>, Error>

Available on (crate features rustls or boring or acme) and crate feature rustls only.

Attempt to create ASN.1 type SEQUENCE from this object.

pub fn as_set(&self) -> Result<Set<'_>, Error>

Available on (crate features rustls or boring or acme) and crate feature rustls only.

Attempt to create ASN.1 type SET from this object.

pub fn as_str(&self) -> Result<&str, Error>

Available on (crate features rustls or boring or acme) and crate feature rustls only.

Attempt to create ASN.1 type UTF8String from this object.

pub fn as_string(&self) -> Result<String, Error>

Available on (crate features rustls or boring or acme) and crate feature rustls only.

Attempt to create ASN.1 type UTF8String from this object.

pub fn as_teletexstring(&self) -> Result<TeletexString<'_>, Error>

Available on (crate features rustls or boring or acme) and crate feature rustls only.

Attempt to create ASN.1 type TeletexString from this object.

pub fn as_u8(&self) -> Result<u8, Error>

Available on (crate features rustls or boring or acme) and crate feature rustls only.

Attempt to create ASN.1 type INTEGER from this object.

pub fn as_u16(&self) -> Result<u16, Error>

Available on (crate features rustls or boring or acme) and crate feature rustls only.

Attempt to create ASN.1 type INTEGER from this object.

pub fn as_u32(&self) -> Result<u32, Error>

Available on (crate features rustls or boring or acme) and crate feature rustls only.

Attempt to create ASN.1 type INTEGER from this object.

pub fn as_u64(&self) -> Result<u64, Error>

Available on (crate features rustls or boring or acme) and crate feature rustls only.

Attempt to create ASN.1 type INTEGER from this object.

pub fn as_u128(&self) -> Result<u128, Error>

Available on (crate features rustls or boring or acme) and crate feature rustls only.

Attempt to create ASN.1 type INTEGER from this object.

pub fn as_universalstring(&self) -> Result<UniversalString<'_>, Error>

Available on (crate features rustls or boring or acme) and crate feature rustls only.

Attempt to create ASN.1 type UniversalString from this object.

pub fn as_utctime(&self) -> Result<UtcTime, Error>

Available on (crate features rustls or boring or acme) and crate feature rustls only.

Attempt to create ASN.1 type UTCTime from this object.

pub fn as_utf8string(&self) -> Result<Utf8String<'_>, Error>

Available on (crate features rustls or boring or acme) and crate feature rustls only.

Attempt to create ASN.1 type UTF8String from this object.

pub fn as_videotexstring(&self) -> Result<VideotexString<'_>, Error>

Available on (crate features rustls or boring or acme) and crate feature rustls only.

Attempt to create ASN.1 type VideotexString from this object.

pub fn as_visiblestring(&self) -> Result<VisibleString<'_>, Error>

Available on (crate features rustls or boring or acme) and crate feature rustls only.

Attempt to create ASN.1 type VisibleString from this object.

pub fn as_optional<'b, T>(&'b self) -> Result<Option<T>, Error>
where 'a: 'b, T: TryFrom<&'b Any<'a>, Error = Error>,

Available on (crate features rustls or boring or acme) and crate feature rustls only.

Attempt to create an Option<T> from this object.

pub fn as_tagged_explicit<T, E, const CLASS: u8, const TAG: u32>( &self, ) -> Result<TaggedValue<T, E, Explicit, CLASS, TAG>, E>
where T: FromBer<'a, E>, E: From<Error>,

Available on (crate features rustls or boring or acme) and crate feature rustls only.

Attempt to create a tagged value (EXPLICIT) from this object.

pub fn as_tagged_implicit<T, E, const CLASS: u8, const TAG: u32>( &self, ) -> Result<TaggedValue<T, E, Implicit, CLASS, TAG>, E>
where T: TryFrom<Any<'a>, Error = E> + Tagged, E: From<Error>,

Available on (crate features rustls or boring or acme) and crate feature rustls only.

Attempt to create a tagged value (IMPLICIT) from this object.

pub fn as_any_str(&self) -> Result<String, Error>

Available on (crate features rustls or boring or acme) and crate feature rustls only.

Attempt to get value as str, for all known string types

This function does not allocate data, so it supports all string types except UniversalString.

pub fn as_any_string(&self) -> Result<&str, Error>

Available on (crate features rustls or boring or acme) and crate feature rustls only.

Attempt to get value as String, for all known string types

This function allocates data

Trait Implementations§

§

impl CheckDerConstraints for Any<'_>

§

impl<'a> Clone for Any<'a>

§

fn clone(&self) -> Any<'a>

Returns a duplicate of the value. Read more
1.0.0§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl<'a> Debug for Any<'a>

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl DynTagged for Any<'_>

§

fn tag(&self) -> Tag

§

impl<'a> FromBer<'a> for Any<'a>

§

fn from_ber(bytes: &'a [u8]) -> Result<(&'a [u8], Any<'a>), Err<Error>>

Attempt to parse input bytes into a BER object
§

impl<'a> FromDer<'a> for Any<'a>

§

fn from_der(bytes: &'a [u8]) -> Result<(&'a [u8], Any<'a>), Err<Error>>

Attempt to parse input bytes into a DER object (enforcing constraints)
§

impl<'a> PartialEq for Any<'a>

§

fn eq(&self, other: &Any<'a>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl ToDer for Any<'_>

Available on crate feature std only.
§

fn write_der_raw(&self, writer: &mut dyn Write) -> Result<usize, SerializeError>

Similar to using to_der, but uses header without computing length value

§

fn to_der_len(&self) -> Result<usize, Error>

Get the length of the object (including the header), when encoded
§

fn write_der_header( &self, writer: &mut dyn Write, ) -> Result<usize, SerializeError>

Attempt to write the DER header to this writer.
§

fn write_der_content( &self, writer: &mut dyn Write, ) -> Result<usize, SerializeError>

Attempt to write the DER content (all except header) to this writer.
§

fn to_der_vec(&self) -> Result<Vec<u8>, SerializeError>

Write the DER encoded representation to a newly allocated Vec<u8>.
§

fn to_der_vec_raw(&self) -> Result<Vec<u8>, SerializeError>

Similar to using to_vec, but uses provided values without changes. This can generate an invalid encoding for a DER object.
§

fn write_der(&self, writer: &mut dyn Write) -> Result<usize, SerializeError>

Attempt to write the DER encoded representation (header and content) into this writer. Read more
§

impl<'a, 'b> TryFrom<&'b Any<'a>> for &'a str

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from(any: &'b Any<'a>) -> Result<&'a str, Error>

Performs the conversion.
§

impl<'a, 'b> TryFrom<&'b Any<'a>> for BerObject<'a>

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from( any: &'b Any<'a>, ) -> Result<BerObject<'a>, <BerObject<'a> as TryFrom<&'b Any<'a>>>::Error>

Performs the conversion.
§

impl<'a, 'b> TryFrom<&'b Any<'a>> for BitString<'a>

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from(any: &'b Any<'a>) -> Result<BitString<'a>, Error>

Performs the conversion.
§

impl<'a, 'r> TryFrom<&'r Any<'a>> for BmpString<'a>

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from(any: &'r Any<'a>) -> Result<BmpString<'a>, Error>

Performs the conversion.
§

impl<'a, 'b> TryFrom<&'b Any<'a>> for Boolean

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from(any: &'b Any<'a>) -> Result<Boolean, Error>

Performs the conversion.
§

impl<'a, 'b> TryFrom<&'b Any<'a>> for EmbeddedPdv<'a>

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from(any: &'b Any<'a>) -> Result<EmbeddedPdv<'a>, Error>

Performs the conversion.
§

impl<'a, 'b> TryFrom<&'b Any<'a>> for EndOfContent

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from(any: &'b Any<'a>) -> Result<EndOfContent, Error>

Performs the conversion.
§

impl<'a, 'b> TryFrom<&'b Any<'a>> for Enumerated

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from(any: &'b Any<'a>) -> Result<Enumerated, Error>

Performs the conversion.
§

impl<'a, 'b> TryFrom<&'b Any<'a>> for GeneralString<'a>

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from(any: &'b Any<'a>) -> Result<GeneralString<'a>, Error>

Performs the conversion.
§

impl<'a, 'b> TryFrom<&'b Any<'a>> for GeneralizedTime

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from(any: &'b Any<'a>) -> Result<GeneralizedTime, Error>

Performs the conversion.
§

impl<'a, 'b> TryFrom<&'b Any<'a>> for GraphicString<'a>

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from(any: &'b Any<'a>) -> Result<GraphicString<'a>, Error>

Performs the conversion.
§

impl<'a, 'b> TryFrom<&'b Any<'a>> for Ia5String<'a>

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from(any: &'b Any<'a>) -> Result<Ia5String<'a>, Error>

Performs the conversion.
§

impl<'a, 'b> TryFrom<&'b Any<'a>> for Integer<'a>

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from(any: &'b Any<'a>) -> Result<Integer<'a>, Error>

Performs the conversion.
§

impl<'a, 'b> TryFrom<&'b Any<'a>> for Null

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from(any: &'b Any<'a>) -> Result<Null, Error>

Performs the conversion.
§

impl<'a, 'b> TryFrom<&'b Any<'a>> for NumericString<'a>

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from(any: &'b Any<'a>) -> Result<NumericString<'a>, Error>

Performs the conversion.
§

impl<'a, 'b> TryFrom<&'b Any<'a>> for ObjectDescriptor<'a>

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from(any: &'b Any<'a>) -> Result<ObjectDescriptor<'a>, Error>

Performs the conversion.
§

impl<'a, 'b> TryFrom<&'b Any<'a>> for OctetString<'a>

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from(any: &'b Any<'a>) -> Result<OctetString<'a>, Error>

Performs the conversion.
§

impl<'a, 'b> TryFrom<&'b Any<'a>> for Oid<'a>

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from(any: &'b Any<'a>) -> Result<Oid<'a>, Error>

Performs the conversion.
§

impl<'a, 'b> TryFrom<&'b Any<'a>> for PrintableString<'a>

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from(any: &'b Any<'a>) -> Result<PrintableString<'a>, Error>

Performs the conversion.
§

impl<'a, 'b> TryFrom<&'b Any<'a>> for Real

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from(any: &'b Any<'a>) -> Result<Real, Error>

Performs the conversion.
§

impl<'a, 'b> TryFrom<&'b Any<'a>> for RsaAesOaepParams<'a>

§

type Error = X509Error

The type returned in the event of a conversion error.
§

fn try_from( value: &'b Any<'a>, ) -> Result<RsaAesOaepParams<'a>, <RsaAesOaepParams<'a> as TryFrom<&'b Any<'a>>>::Error>

Performs the conversion.
§

impl<'a, 'b> TryFrom<&'b Any<'a>> for RsaSsaPssParams<'a>

§

type Error = X509Error

The type returned in the event of a conversion error.
§

fn try_from( value: &'b Any<'a>, ) -> Result<RsaSsaPssParams<'a>, <RsaSsaPssParams<'a> as TryFrom<&'b Any<'a>>>::Error>

Performs the conversion.
§

impl<'a, 'b> TryFrom<&'b Any<'a>> for Sequence<'a>

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from(any: &'b Any<'a>) -> Result<Sequence<'a>, Error>

Performs the conversion.
§

impl<'a, 'b> TryFrom<&'b Any<'a>> for Set<'a>

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from(any: &'b Any<'a>) -> Result<Set<'a>, Error>

Performs the conversion.
§

impl<'a, 'b> TryFrom<&'b Any<'a>> for String

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from(any: &'b Any<'a>) -> Result<String, Error>

Performs the conversion.
§

impl<'a, 'b, T, E, const CLASS: u8, const TAG: u32> TryFrom<&'b Any<'a>> for TaggedValue<T, E, Explicit, CLASS, TAG>
where T: FromBer<'a, E>, E: From<Error>,

§

type Error = E

The type returned in the event of a conversion error.
§

fn try_from( any: &'b Any<'a>, ) -> Result<TaggedValue<T, E, Explicit, CLASS, TAG>, E>

Performs the conversion.
§

impl<'a, 'b, E, T, const CLASS: u8, const TAG: u32> TryFrom<&'b Any<'a>> for TaggedValue<T, E, Implicit, CLASS, TAG>
where T: TryFrom<Any<'a>, Error = E> + Tagged, E: From<Error>,

§

type Error = E

The type returned in the event of a conversion error.
§

fn try_from( any: &'b Any<'a>, ) -> Result<TaggedValue<T, E, Implicit, CLASS, TAG>, E>

Performs the conversion.
§

impl<'a, 'b> TryFrom<&'b Any<'a>> for TeletexString<'a>

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from(any: &'b Any<'a>) -> Result<TeletexString<'a>, Error>

Performs the conversion.
§

impl<'a, 'b> TryFrom<&'b Any<'a>> for UniversalString<'a>

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from(any: &'b Any<'a>) -> Result<UniversalString<'a>, Error>

Performs the conversion.
§

impl<'a, 'b> TryFrom<&'b Any<'a>> for UtcTime

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from(any: &'b Any<'a>) -> Result<UtcTime, Error>

Performs the conversion.
§

impl<'a, 'b> TryFrom<&'b Any<'a>> for Utf8String<'a>

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from(any: &'b Any<'a>) -> Result<Utf8String<'a>, Error>

Performs the conversion.
§

impl<'a, 'b> TryFrom<&'b Any<'a>> for VideotexString<'a>

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from(any: &'b Any<'a>) -> Result<VideotexString<'a>, Error>

Performs the conversion.
§

impl<'a, 'b> TryFrom<&'b Any<'a>> for VisibleString<'a>

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from(any: &'b Any<'a>) -> Result<VisibleString<'a>, Error>

Performs the conversion.
§

impl<'a, 'b> TryFrom<&'b Any<'a>> for bool

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from(any: &'b Any<'a>) -> Result<bool, Error>

Performs the conversion.
§

impl<'a, 'b> TryFrom<&'b Any<'a>> for i128

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from(any: &'b Any<'a>) -> Result<i128, Error>

Performs the conversion.
§

impl<'a, 'b> TryFrom<&'b Any<'a>> for i16

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from(any: &'b Any<'a>) -> Result<i16, Error>

Performs the conversion.
§

impl<'a, 'b> TryFrom<&'b Any<'a>> for i32

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from(any: &'b Any<'a>) -> Result<i32, Error>

Performs the conversion.
§

impl<'a, 'b> TryFrom<&'b Any<'a>> for i64

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from(any: &'b Any<'a>) -> Result<i64, Error>

Performs the conversion.
§

impl<'a, 'b> TryFrom<&'b Any<'a>> for i8

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from(any: &'b Any<'a>) -> Result<i8, Error>

Performs the conversion.
§

impl<'a, 'b> TryFrom<&'b Any<'a>> for u128

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from(any: &'b Any<'a>) -> Result<u128, Error>

Performs the conversion.
§

impl<'a, 'b> TryFrom<&'b Any<'a>> for u16

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from(any: &'b Any<'a>) -> Result<u16, Error>

Performs the conversion.
§

impl<'a, 'b> TryFrom<&'b Any<'a>> for u32

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from(any: &'b Any<'a>) -> Result<u32, Error>

Performs the conversion.
§

impl<'a, 'b> TryFrom<&'b Any<'a>> for u64

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from(any: &'b Any<'a>) -> Result<u64, Error>

Performs the conversion.
§

impl<'a, 'b> TryFrom<&'b Any<'a>> for u8

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from(any: &'b Any<'a>) -> Result<u8, Error>

Performs the conversion.
§

impl<'a> TryFrom<Any<'a>> for &'a [u8]

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from(any: Any<'a>) -> Result<&'a [u8], Error>

Performs the conversion.
§

impl<'a> TryFrom<Any<'a>> for &'a str

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from(any: Any<'a>) -> Result<&'a str, Error>

Performs the conversion.
§

impl<'a> TryFrom<Any<'a>> for ()

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from(any: Any<'a>) -> Result<(), Error>

Performs the conversion.
§

impl<'a, T> TryFrom<Any<'a>> for BTreeSet<T>
where T: FromBer<'a> + Ord,

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from(any: Any<'a>) -> Result<BTreeSet<T>, Error>

Performs the conversion.
§

impl<'a> TryFrom<Any<'a>> for BerObject<'a>

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from( any: Any<'a>, ) -> Result<BerObject<'a>, <BerObject<'a> as TryFrom<Any<'a>>>::Error>

Performs the conversion.
§

impl<'a> TryFrom<Any<'a>> for BitString<'a>

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from(any: Any<'a>) -> Result<BitString<'a>, Error>

Performs the conversion.
§

impl<'a> TryFrom<Any<'a>> for BmpString<'a>

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from(any: Any<'a>) -> Result<BmpString<'a>, Error>

Performs the conversion.
§

impl<'a> TryFrom<Any<'a>> for Boolean

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from(any: Any<'a>) -> Result<Boolean, Error>

Performs the conversion.
§

impl<'a> TryFrom<Any<'a>> for EmbeddedPdv<'a>

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from(any: Any<'a>) -> Result<EmbeddedPdv<'a>, Error>

Performs the conversion.
§

impl<'a> TryFrom<Any<'a>> for EndOfContent

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from(any: Any<'a>) -> Result<EndOfContent, Error>

Performs the conversion.
§

impl<'a> TryFrom<Any<'a>> for Enumerated

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from(any: Any<'a>) -> Result<Enumerated, Error>

Performs the conversion.
§

impl<'a> TryFrom<Any<'a>> for GeneralName<'a>

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from( any: Any<'a>, ) -> Result<GeneralName<'a>, <GeneralName<'a> as TryFrom<Any<'a>>>::Error>

Performs the conversion.
§

impl<'a> TryFrom<Any<'a>> for GeneralString<'a>

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from(any: Any<'a>) -> Result<GeneralString<'a>, Error>

Performs the conversion.
§

impl<'a> TryFrom<Any<'a>> for GeneralizedTime

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from(any: Any<'a>) -> Result<GeneralizedTime, Error>

Performs the conversion.
§

impl<'a> TryFrom<Any<'a>> for GraphicString<'a>

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from(any: Any<'a>) -> Result<GraphicString<'a>, Error>

Performs the conversion.
§

impl<'a, T> TryFrom<Any<'a>> for HashSet<T>
where T: FromBer<'a> + Hash + Eq,

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from(any: Any<'a>) -> Result<HashSet<T>, Error>

Performs the conversion.
§

impl<'a> TryFrom<Any<'a>> for Ia5String<'a>

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from(any: Any<'a>) -> Result<Ia5String<'a>, Error>

Performs the conversion.
§

impl<'a> TryFrom<Any<'a>> for Integer<'a>

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from(any: Any<'a>) -> Result<Integer<'a>, Error>

Performs the conversion.
§

impl<'a> TryFrom<Any<'a>> for Null

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from(any: Any<'a>) -> Result<Null, Error>

Performs the conversion.
§

impl<'a> TryFrom<Any<'a>> for NumericString<'a>

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from(any: Any<'a>) -> Result<NumericString<'a>, Error>

Performs the conversion.
§

impl<'a> TryFrom<Any<'a>> for ObjectDescriptor<'a>

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from(any: Any<'a>) -> Result<ObjectDescriptor<'a>, Error>

Performs the conversion.
§

impl<'a> TryFrom<Any<'a>> for OctetString<'a>

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from(any: Any<'a>) -> Result<OctetString<'a>, Error>

Performs the conversion.
§

impl<'a> TryFrom<Any<'a>> for Oid<'a>

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from(any: Any<'a>) -> Result<Oid<'a>, Error>

Performs the conversion.
§

impl<'a> TryFrom<Any<'a>> for PrintableString<'a>

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from(any: Any<'a>) -> Result<PrintableString<'a>, Error>

Performs the conversion.
§

impl<'a> TryFrom<Any<'a>> for Real

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from(any: Any<'a>) -> Result<Real, Error>

Performs the conversion.
§

impl<'a> TryFrom<Any<'a>> for RsaAesOaepParams<'a>

§

type Error = X509Error

The type returned in the event of a conversion error.
§

fn try_from( value: Any<'a>, ) -> Result<RsaAesOaepParams<'a>, <RsaAesOaepParams<'a> as TryFrom<Any<'a>>>::Error>

Performs the conversion.
§

impl<'a> TryFrom<Any<'a>> for RsaSsaPssParams<'a>

§

type Error = X509Error

The type returned in the event of a conversion error.
§

fn try_from( value: Any<'a>, ) -> Result<RsaSsaPssParams<'a>, <RsaSsaPssParams<'a> as TryFrom<Any<'a>>>::Error>

Performs the conversion.
§

impl<'a> TryFrom<Any<'a>> for Sequence<'a>

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from(any: Any<'a>) -> Result<Sequence<'a>, Error>

Performs the conversion.
§

impl<'a, T> TryFrom<Any<'a>> for SequenceOf<T>
where T: FromBer<'a>,

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from(any: Any<'a>) -> Result<SequenceOf<T>, Error>

Performs the conversion.
§

impl<'a> TryFrom<Any<'a>> for Set<'a>

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from(any: Any<'a>) -> Result<Set<'a>, Error>

Performs the conversion.
§

impl<'a, T> TryFrom<Any<'a>> for SetOf<T>
where T: FromBer<'a>,

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from(any: Any<'a>) -> Result<SetOf<T>, Error>

Performs the conversion.
§

impl<'a> TryFrom<Any<'a>> for String

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from(any: Any<'a>) -> Result<String, Error>

Performs the conversion.
§

impl<'a, T, E, const CLASS: u8, const TAG: u32> TryFrom<Any<'a>> for TaggedValue<T, E, Explicit, CLASS, TAG>
where T: FromBer<'a, E>, E: From<Error>,

§

type Error = E

The type returned in the event of a conversion error.
§

fn try_from(any: Any<'a>) -> Result<TaggedValue<T, E, Explicit, CLASS, TAG>, E>

Performs the conversion.
§

impl<'a, T, E, const CLASS: u8, const TAG: u32> TryFrom<Any<'a>> for TaggedValue<T, E, Implicit, CLASS, TAG>
where T: TryFrom<Any<'a>, Error = E> + Tagged, E: From<Error>,

§

type Error = E

The type returned in the event of a conversion error.
§

fn try_from(any: Any<'a>) -> Result<TaggedValue<T, E, Implicit, CLASS, TAG>, E>

Performs the conversion.
§

impl<'a> TryFrom<Any<'a>> for TeletexString<'a>

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from(any: Any<'a>) -> Result<TeletexString<'a>, Error>

Performs the conversion.
§

impl<'a> TryFrom<Any<'a>> for UniversalString<'a>

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from(any: Any<'a>) -> Result<UniversalString<'a>, Error>

Performs the conversion.
§

impl<'a> TryFrom<Any<'a>> for UtcTime

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from(any: Any<'a>) -> Result<UtcTime, Error>

Performs the conversion.
§

impl<'a> TryFrom<Any<'a>> for Utf8String<'a>

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from(any: Any<'a>) -> Result<Utf8String<'a>, Error>

Performs the conversion.
§

impl<'a, T> TryFrom<Any<'a>> for Vec<T>
where T: FromBer<'a>,

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from(any: Any<'a>) -> Result<Vec<T>, Error>

Performs the conversion.
§

impl<'a> TryFrom<Any<'a>> for VideotexString<'a>

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from(any: Any<'a>) -> Result<VideotexString<'a>, Error>

Performs the conversion.
§

impl<'a> TryFrom<Any<'a>> for VisibleString<'a>

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from(any: Any<'a>) -> Result<VisibleString<'a>, Error>

Performs the conversion.
§

impl<'a> TryFrom<Any<'a>> for bool

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from(any: Any<'a>) -> Result<bool, Error>

Performs the conversion.
§

impl<'a> TryFrom<Any<'a>> for f32

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from(any: Any<'a>) -> Result<f32, Error>

Performs the conversion.
§

impl<'a> TryFrom<Any<'a>> for f64

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from(any: Any<'a>) -> Result<f64, Error>

Performs the conversion.
§

impl<'a> TryFrom<Any<'a>> for i128

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from(any: Any<'a>) -> Result<i128, Error>

Performs the conversion.
§

impl<'a> TryFrom<Any<'a>> for i16

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from(any: Any<'a>) -> Result<i16, Error>

Performs the conversion.
§

impl<'a> TryFrom<Any<'a>> for i32

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from(any: Any<'a>) -> Result<i32, Error>

Performs the conversion.
§

impl<'a> TryFrom<Any<'a>> for i64

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from(any: Any<'a>) -> Result<i64, Error>

Performs the conversion.
§

impl<'a> TryFrom<Any<'a>> for i8

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from(any: Any<'a>) -> Result<i8, Error>

Performs the conversion.
§

impl<'a> TryFrom<Any<'a>> for u128

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from(any: Any<'a>) -> Result<u128, Error>

Performs the conversion.
§

impl<'a> TryFrom<Any<'a>> for u16

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from(any: Any<'a>) -> Result<u16, Error>

Performs the conversion.
§

impl<'a> TryFrom<Any<'a>> for u32

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from(any: Any<'a>) -> Result<u32, Error>

Performs the conversion.
§

impl<'a> TryFrom<Any<'a>> for u64

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from(any: Any<'a>) -> Result<u64, Error>

Performs the conversion.
§

impl<'a> TryFrom<Any<'a>> for u8

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from(any: Any<'a>) -> Result<u8, Error>

Performs the conversion.
§

impl<'ber, 'a> TryFrom<Any<'ber>> for AlgorithmIdentifier<'a>
where 'ber: 'a,

§

type Error = X509Error

The type returned in the event of a conversion error.
§

fn try_from(any: Any<'ber>) -> Result<AlgorithmIdentifier<'a>, X509Error>

Performs the conversion.
§

impl<'ber, 'a> TryFrom<Any<'ber>> for EcdsaSigValue<'a>
where 'ber: 'a,

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from(any: Any<'ber>) -> Result<EcdsaSigValue<'a>, Error>

Performs the conversion.
§

impl<'ber, 'a> TryFrom<Any<'ber>> for PolicyMapping<'a>
where 'ber: 'a,

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from(any: Any<'ber>) -> Result<PolicyMapping<'a>, Error>

Performs the conversion.
§

impl DerAutoDerive for Any<'_>

§

impl<'a> Eq for Any<'a>

§

impl<'a> StructuralPartialEq for Any<'a>

Auto Trait Implementations§

§

impl<'a> Freeze for Any<'a>

§

impl<'a> RefUnwindSafe for Any<'a>

§

impl<'a> Send for Any<'a>

§

impl<'a> Sync for Any<'a>

§

impl<'a> Unpin for Any<'a>

§

impl<'a> UnwindSafe for Any<'a>

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where T: 'a,

§

fn implicit( self, class: Class, constructed: bool, tag: u32, ) -> TaggedParser<'a, Implicit, Self, E>

§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> CloneToUninit for T
where T: Clone,

§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<'a, T, E> FromBer<'a, E> for T
where T: TryFrom<Any<'a>, Error = E>, E: From<Error>,

§

fn from_ber(bytes: &'a [u8]) -> Result<(&'a [u8], T), Err<E>>

Attempt to parse input bytes into a BER object
§

impl<'a, T, E> FromDer<'a, E> for T
where T: TryFrom<Any<'a>, Error = E> + CheckDerConstraints + DerAutoDerive, E: From<Error> + Display + Debug,

§

fn from_der(bytes: &'a [u8]) -> Result<(&'a [u8], T), Err<E>>

Attempt to parse input bytes into a DER object (enforcing constraints)
§

impl<T> FromRef<T> for T
where T: Clone,

§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
§

impl<T> FutureExt for T

§

fn with_context(self, otel_cx: Context) -> WithContext<Self>

Attaches the provided Context to this type, returning a WithContext wrapper. Read more
§

fn with_current_context(self) -> WithContext<Self>

Attaches the current Context to this type, returning a WithContext wrapper. Read more
§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
§

impl<T> PolicyExt for T
where T: ?Sized,

§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
§

impl<T, U> RamaFrom<T> for U
where U: From<T>,

§

fn rama_from(value: T) -> U

§

impl<T, U, CrateMarker> RamaInto<U, CrateMarker> for T
where U: RamaFrom<T, CrateMarker>,

§

fn rama_into(self) -> U

§

impl<T, U> RamaTryFrom<T> for U
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

§

fn rama_try_from(value: T) -> Result<U, <U as RamaTryFrom<T>>::Error>

§

impl<T, U, CrateMarker> RamaTryInto<U, CrateMarker> for T
where U: RamaTryFrom<T, CrateMarker>,

§

type Error = <U as RamaTryFrom<T, CrateMarker>>::Error

§

fn rama_try_into(self) -> Result<U, <U as RamaTryFrom<T, CrateMarker>>::Error>

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more