Struct openssl::asn1::Asn1Integer [−][src]
pub struct Asn1Integer(_);
Expand description
Numeric representation
Integers in ASN.1 may include BigNum, int64 or uint64. BigNum implementation
can be found within bn
module.
OpenSSL documentation includes ASN1_INTEGER_set
.
Implementations
Converts a bignum to an Asn1Integer
.
Corresponds to BN_to_ASN1_INTEGER
. Also see
BigNumRef::to_asn1_integer
.
Methods from Deref<Target = Asn1IntegerRef>
use to_bn instead
Converts the integer to a BigNum
.
This corresponds to ASN1_INTEGER_to_BN
.
Sets the ASN.1 value to the value of a signed 32-bit integer, for larger numbers
see bn
.
OpenSSL documentation at ASN1_INTEGER_set
Trait Implementations
Performs the conversion.
Immutably borrows from an owned value. Read more
type Target = Asn1IntegerRef
type Target = Asn1IntegerRef
The resulting type after dereferencing.
Dereferences the value.
Mutably dereferences the value.
type CType = ASN1_INTEGER
type CType = ASN1_INTEGER
The raw C type.
type Ref = Asn1IntegerRef
type Ref = Asn1IntegerRef
The type representing a reference to this type.
Constructs an instance of this type from its raw type.
Returns a raw pointer to the wrapped value.