Enum cddl_cat::ast::MemberKeyVal
source · pub enum MemberKeyVal {
Type1(Type1),
Bareword(String),
Value(Value),
}
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§
source§impl Debug for MemberKeyVal
impl Debug for MemberKeyVal
source§impl PartialEq for MemberKeyVal
impl PartialEq for MemberKeyVal
source§fn 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 ==
.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§
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