[][src]Struct cddl_cat::ast::TypeRange

pub struct TypeRange {
    pub start: Type2,
    pub end: Type2,
    pub inclusive: bool,
}

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: Type2end: Type2inclusive: bool

Trait Implementations

impl Debug for TypeRange[src]

impl PartialEq<TypeRange> for TypeRange[src]

impl StructuralPartialEq for TypeRange[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.