Struct asn1rs::model::Definition
source · pub struct Definition<T>(pub String, pub T);
Tuple Fields§
§0: String
§1: T
Implementations§
Trait Implementations§
source§impl<T> Clone for Definition<T>where
T: Clone,
impl<T> Clone for Definition<T>where T: Clone,
source§fn clone(&self) -> Definition<T>
fn clone(&self) -> Definition<T>
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<T> Debug for Definition<T>where
T: Debug,
impl<T> Debug for Definition<T>where T: Debug,
source§impl<T> PartialEq<Definition<T>> for Definition<T>where
T: PartialEq<T>,
impl<T> PartialEq<Definition<T>> for Definition<T>where T: PartialEq<T>,
source§fn eq(&self, other: &Definition<T>) -> bool
fn eq(&self, other: &Definition<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<T> PartialOrd<Definition<T>> for Definition<T>where
T: PartialOrd<T>,
impl<T> PartialOrd<Definition<T>> for Definition<T>where T: PartialOrd<T>,
source§fn partial_cmp(&self, other: &Definition<T>) -> Option<Ordering>
fn partial_cmp(&self, other: &Definition<T>) -> 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 moresource§impl TagProperty for Definition<Asn<Resolved>>
impl TagProperty for Definition<Asn<Resolved>>
fn tag(&self) -> Option<Tag>
fn set_tag(&mut self, tag: Tag)
fn reset_tag(&mut self)
fn with_tag_opt(self, tag: Option<Tag>) -> Definition<Asn<Resolved>>where Definition<Asn<Resolved>>: Sized,
fn with_tag(self, tag: Tag) -> Definition<Asn<Resolved>>where Definition<Asn<Resolved>>: Sized,
fn without_tag(self) -> Definition<Asn<Resolved>>where Definition<Asn<Resolved>>: Sized,
source§impl TagProperty for Definition<Rust>
impl TagProperty for Definition<Rust>
fn tag(&self) -> Option<Tag>
fn set_tag(&mut self, tag: Tag)
fn reset_tag(&mut self)
fn with_tag_opt(self, tag: Option<Tag>) -> Definition<Rust>where Definition<Rust>: Sized,
fn with_tag(self, tag: Tag) -> Definition<Rust>where Definition<Rust>: Sized,
fn without_tag(self) -> Definition<Rust>where Definition<Rust>: Sized,
impl<T> Eq for Definition<T>where T: Eq,
impl<T> StructuralEq for Definition<T>
impl<T> StructuralPartialEq for Definition<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for Definition<T>where T: RefUnwindSafe,
impl<T> Send for Definition<T>where T: Send,
impl<T> Sync for Definition<T>where T: Sync,
impl<T> Unpin for Definition<T>where T: Unpin,
impl<T> UnwindSafe for Definition<T>where T: UnwindSafe,
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.