Struct cddl_cat::ast::NameGeneric
source · [−]Expand description
A name identifier with generic arguments.
A name may have generic arguments, e.g. message<K,V>
.
A name without generic arguments will have an empty generic_args Vec.
CDDL ABNF grammar:
genericarg = "<" S type1 S *("," S type1 S ) ">"
type2 = ...
/ typename [genericarg]
/ "~" S typename [genericarg]
/ "&" S groupname [genericarg]
/ ...
Fields
name: String
A type or group name.
generic_args: Vec<Type1>
Generic arguments, if any.
Trait Implementations
sourceimpl Debug for NameGeneric
impl Debug for NameGeneric
sourceimpl PartialEq<NameGeneric> for NameGeneric
impl PartialEq<NameGeneric> for NameGeneric
sourcefn eq(&self, other: &NameGeneric) -> bool
fn eq(&self, other: &NameGeneric) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &NameGeneric) -> bool
fn ne(&self, other: &NameGeneric) -> bool
This method tests for !=
.
impl StructuralPartialEq for NameGeneric
Auto Trait Implementations
impl RefUnwindSafe for NameGeneric
impl Send for NameGeneric
impl Sync for NameGeneric
impl Unpin for NameGeneric
impl UnwindSafe for NameGeneric
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