Struct asn1_rs::Enumerated
source · [−]pub struct Enumerated(pub u32);
Expand description
Tuple Fields
0: u32
Implementations
sourceimpl Enumerated
impl Enumerated
Trait Implementations
sourceimpl CheckDerConstraints for Enumerated
impl CheckDerConstraints for Enumerated
fn check_constraints(any: &Any<'_>) -> Result<()>
sourceimpl Debug for Enumerated
impl Debug for Enumerated
sourceimpl PartialEq<Enumerated> for Enumerated
impl PartialEq<Enumerated> for Enumerated
sourcefn eq(&self, other: &Enumerated) -> bool
fn eq(&self, other: &Enumerated) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &Enumerated) -> bool
fn ne(&self, other: &Enumerated) -> bool
This method tests for !=
.
sourceimpl ToDer for Enumerated
impl ToDer for Enumerated
sourcefn to_der_len(&self) -> Result<usize>
fn to_der_len(&self) -> Result<usize>
Get the length of the object, when encoded Read more
sourcefn write_der_header(&self, writer: &mut dyn Write) -> SerializeResult<usize>
fn write_der_header(&self, writer: &mut dyn Write) -> SerializeResult<usize>
Attempt to write the DER header to this writer.
sourcefn write_der_content(&self, writer: &mut dyn Write) -> SerializeResult<usize>
fn write_der_content(&self, writer: &mut dyn Write) -> SerializeResult<usize>
Attempt to write the DER content (all except header) to this writer.
sourcefn to_der_vec(&self) -> SerializeResult<Vec<u8>>
fn to_der_vec(&self) -> SerializeResult<Vec<u8>>
Write the DER encoded representation to a newly allocated Vec<u8>
.
sourcefn to_der_vec_raw(&self) -> SerializeResult<Vec<u8>>
fn to_der_vec_raw(&self) -> SerializeResult<Vec<u8>>
Similar to using to_vec
, but uses provided values without changes.
This can generate an invalid encoding for a DER object. Read more
sourcefn write_der(&self, writer: &mut dyn Write) -> SerializeResult<usize>
fn write_der(&self, writer: &mut dyn Write) -> SerializeResult<usize>
Attempt to write the DER encoded representation (header and content) into this writer. Read more
sourcefn write_der_raw(&self, writer: &mut dyn Write) -> SerializeResult<usize>
fn write_der_raw(&self, writer: &mut dyn Write) -> SerializeResult<usize>
Similar to using to_der
, but uses provided values without changes.
This can generate an invalid encoding for a DER object. Read more
sourceimpl<'a, 'b> TryFrom<&'b Any<'a>> for Enumerated
impl<'a, 'b> TryFrom<&'b Any<'a>> for Enumerated
sourceimpl<'a> TryFrom<Any<'a>> for Enumerated
impl<'a> TryFrom<Any<'a>> for Enumerated
impl DerAutoDerive for Enumerated
impl StructuralPartialEq for Enumerated
Auto Trait Implementations
impl RefUnwindSafe for Enumerated
impl Send for Enumerated
impl Sync for Enumerated
impl Unpin for Enumerated
impl UnwindSafe for Enumerated
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more