Struct cddl_cat::ast::TypeControl
source · pub struct TypeControl {
pub target: Type2,
pub arg: Type2,
pub op: String,
}
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§
source§impl Debug for TypeControl
impl Debug for TypeControl
source§impl PartialEq for TypeControl
impl PartialEq for TypeControl
source§fn 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 ==
.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§
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