pub struct TypeRange {
pub start: Type2,
pub end: Type2,
pub inclusive: bool,
}
Expand description
A CDDL type, specified with a range operator.
Range operators are ..
(inclusive range) and ...
(exclusive range).
CDDL only allows the range operators on pairs of integers or floats.
Fields§
§start: Type2
§end: Type2
§inclusive: bool
Trait Implementations§
source§impl PartialEq for TypeRange
impl PartialEq for TypeRange
impl StructuralPartialEq for TypeRange
Auto Trait Implementations§
impl RefUnwindSafe for TypeRange
impl Send for TypeRange
impl Sync for TypeRange
impl Unpin for TypeRange
impl UnwindSafe for TypeRange
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