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: StringTrait Implementations§
Source§impl Debug for TypeControl
impl Debug for TypeControl
Source§impl PartialEq for TypeControl
impl PartialEq for TypeControl
impl StructuralPartialEq for TypeControl
Auto Trait Implementations§
impl Forget for TypeControl
impl Freeze for TypeControl
impl RefUnwindSafe for TypeControl
impl Send for TypeControl
impl Sync for TypeControl
impl Unpin for TypeControl
impl UnsafeUnpin 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