pub enum Type1 {
Simple(Type2),
Range(TypeRange),
Control(TypeControl),
}
Expand description
A CDDL type, with an additional range or control operator.
CDDL ABNF grammar:
type1 = type2 [S (rangeop / ctlop) S type2]
Variants
Simple(Type2)
A Type1
containing only a Type2
with no operators
Range(TypeRange)
A range (e.g. 1..10
)
Control(TypeControl)
A type with a control operator attached (e.g. bstr .size 32
)
Trait Implementations
impl StructuralPartialEq for Type1
Auto Trait Implementations
impl RefUnwindSafe for Type1
impl Send for Type1
impl Sync for Type1
impl Unpin for Type1
impl UnwindSafe for Type1
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