Struct asn1rs_model::model::Definition
source · pub struct Definition<T>(pub String, pub T);
Tuple Fields§
§0: String
§1: T
Implementations§
Trait Implementations§
source§impl<T: Clone> Clone for Definition<T>
impl<T: Clone> Clone for Definition<T>
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> Debug for Definition<T>
impl<T: Debug> Debug for Definition<T>
source§impl<T: PartialEq> PartialEq<Definition<T>> for Definition<T>
impl<T: PartialEq> PartialEq<Definition<T>> for Definition<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> PartialOrd<Definition<T>> for Definition<T>
impl<T: PartialOrd> PartialOrd<Definition<T>> for Definition<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>
impl TagProperty for Definition<Asn>
source§impl TagProperty for Definition<Rust>
impl TagProperty for Definition<Rust>
impl<T: Eq> Eq for Definition<T>
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.