Enum cddl_cat::ast::MemberKeyVal
source · [−]Expand description
The “key” part of a key-value group member.
Variants
Type1(Type1)
Any type specified with the =>
separator.
Bareword(String)
A type name.
Value(Value)
A literal value.
Trait Implementations
sourceimpl Debug for MemberKeyVal
impl Debug for MemberKeyVal
sourceimpl PartialEq<MemberKeyVal> for MemberKeyVal
impl PartialEq<MemberKeyVal> for MemberKeyVal
sourcefn eq(&self, other: &MemberKeyVal) -> bool
fn eq(&self, other: &MemberKeyVal) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &MemberKeyVal) -> bool
fn ne(&self, other: &MemberKeyVal) -> bool
This method tests for !=
.
impl StructuralPartialEq for MemberKeyVal
Auto Trait Implementations
impl RefUnwindSafe for MemberKeyVal
impl Send for MemberKeyVal
impl Sync for MemberKeyVal
impl Unpin for MemberKeyVal
impl UnwindSafe for MemberKeyVal
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