Enum asn1rs_model::model::LiteralValue
source · pub enum LiteralValue {
Boolean(bool),
String(String),
Integer(i64),
OctetString(Vec<u8>),
EnumeratedVariant(String, String),
}
Variants§
Implementations§
source§impl LiteralValue
impl LiteralValue
source§impl LiteralValue
impl LiteralValue
pub fn try_from_asn_str(asn: &str) -> Option<LiteralValue>
source§impl LiteralValue
impl LiteralValue
pub fn to_integer(&self) -> Option<i64>
Trait Implementations§
source§impl Clone for LiteralValue
impl Clone for LiteralValue
source§fn clone(&self) -> LiteralValue
fn clone(&self) -> LiteralValue
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for LiteralValue
impl Debug for LiteralValue
source§impl PartialEq<LiteralValue> for LiteralValue
impl PartialEq<LiteralValue> for LiteralValue
source§fn eq(&self, other: &LiteralValue) -> bool
fn eq(&self, other: &LiteralValue) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<LiteralValue> for LiteralValue
impl PartialOrd<LiteralValue> for LiteralValue
source§fn partial_cmp(&self, other: &LiteralValue) -> Option<Ordering>
fn partial_cmp(&self, other: &LiteralValue) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for LiteralValue
impl StructuralEq for LiteralValue
impl StructuralPartialEq for LiteralValue
Auto Trait Implementations§
impl RefUnwindSafe for LiteralValue
impl Send for LiteralValue
impl Sync for LiteralValue
impl Unpin for LiteralValue
impl UnwindSafe for LiteralValue
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.