Struct ethers::core::k256::elliptic_curve::pkcs8::der::asn1::Any [−][src]
pub struct Any<'a> { /* fields omitted */ }
Expand description
ASN.1 ANY
: represents any explicitly tagged ASN.1 value.
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
Get the raw value for this Any
type as a byte slice.
Attempt to decode an ASN.1 BIT STRING
.
Attempt to decode an ASN.1 CONTEXT-SPECIFIC
field.
Attempt to decode an ASN.1 GeneralizedTime
.
Attempt to decode an ASN.1 IA5String
.
Attempt to decode an ASN.1 OCTET STRING
.
Attempt to decode an ASN.1 OBJECT IDENTIFIER
.
Attempt to decode an ASN.1 OPTIONAL
value.
Attempt to decode an ASN.1 PrintableString
.
Attempt to decode this value an ASN.1 SEQUENCE
, creating a new
nested Decoder
and calling the provided argument with it.
Attempt to decode an ASN.1 UTF8String
.
Trait Implementations
Is the provided Tag
decodable as a variant of this CHOICE
?
Compute the length of this value in bytes when encoded as ASN.1 DER.
Encode this value as ASN.1 DER using the provided Encoder
.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl<'a> RefUnwindSafe for Any<'a>
impl<'a> UnwindSafe for Any<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more