Struct cddl_cat::ast::TypeControl
source · [−]Expand description
A CDDL type, specified with a control operator.
Control operators can express a range of possibilities, including
.size N
(limit size of a value in bytes) or .regexp
(requiring a text
string to match the given regular expression).
Fields
target: Type2
arg: Type2
op: String
Trait Implementations
sourceimpl Debug for TypeControl
impl Debug for TypeControl
sourceimpl PartialEq<TypeControl> for TypeControl
impl PartialEq<TypeControl> for TypeControl
sourcefn eq(&self, other: &TypeControl) -> bool
fn eq(&self, other: &TypeControl) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &TypeControl) -> bool
fn ne(&self, other: &TypeControl) -> bool
This method tests for !=
.
impl StructuralPartialEq for TypeControl
Auto Trait Implementations
impl RefUnwindSafe for TypeControl
impl Send for TypeControl
impl Sync for TypeControl
impl Unpin for TypeControl
impl UnwindSafe for TypeControl
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