pub struct Asn1Enumerated(/* private fields */);
Expand description
An ASN.1 enumerated.
Methods from Deref<Target = Asn1EnumeratedRef>§
sourcepub fn get_i64(&self) -> Result<i64, ErrorStack>
pub fn get_i64(&self) -> Result<i64, ErrorStack>
Get the value, if it fits in the required bounds.
This corresponds to ASN1_ENUMERATED_get_int64
.
Trait Implementations§
source§impl AsRef<Asn1EnumeratedRef> for Asn1Enumerated
impl AsRef<Asn1EnumeratedRef> for Asn1Enumerated
source§fn as_ref(&self) -> &Asn1EnumeratedRef
fn as_ref(&self) -> &Asn1EnumeratedRef
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Borrow<Asn1EnumeratedRef> for Asn1Enumerated
impl Borrow<Asn1EnumeratedRef> for Asn1Enumerated
source§fn borrow(&self) -> &Asn1EnumeratedRef
fn borrow(&self) -> &Asn1EnumeratedRef
Immutably borrows from an owned value. Read more
source§impl Deref for Asn1Enumerated
impl Deref for Asn1Enumerated
source§type Target = Asn1EnumeratedRef
type Target = Asn1EnumeratedRef
The resulting type after dereferencing.
source§fn deref(&self) -> &Asn1EnumeratedRef
fn deref(&self) -> &Asn1EnumeratedRef
Dereferences the value.
source§impl DerefMut for Asn1Enumerated
impl DerefMut for Asn1Enumerated
source§fn deref_mut(&mut self) -> &mut Asn1EnumeratedRef
fn deref_mut(&mut self) -> &mut Asn1EnumeratedRef
Mutably dereferences the value.
source§impl Drop for Asn1Enumerated
impl Drop for Asn1Enumerated
source§impl ForeignType for Asn1Enumerated
impl ForeignType for Asn1Enumerated
source§type CType = ASN1_ENUMERATED
type CType = ASN1_ENUMERATED
The raw C type.
source§type Ref = Asn1EnumeratedRef
type Ref = Asn1EnumeratedRef
The type representing a reference to this type.
source§unsafe fn from_ptr(ptr: *mut ASN1_ENUMERATED) -> Asn1Enumerated
unsafe fn from_ptr(ptr: *mut ASN1_ENUMERATED) -> Asn1Enumerated
Constructs an instance of this type from its raw type.
source§fn as_ptr(&self) -> *mut ASN1_ENUMERATED
fn as_ptr(&self) -> *mut ASN1_ENUMERATED
Returns a raw pointer to the wrapped value.
impl Send for Asn1Enumerated
impl Sync for Asn1Enumerated
Auto Trait Implementations§
impl Freeze for Asn1Enumerated
impl RefUnwindSafe for Asn1Enumerated
impl Unpin for Asn1Enumerated
impl UnwindSafe for Asn1Enumerated
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more