[][src]Enum cddl_cat::ast::Type1

pub enum Type1 {
    Simple(Type2),
    Range(TypeRange),
    Control(TypeControl),
}

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 Debug for Type1[src]

impl PartialEq<Type1> for Type1[src]

impl StructuralPartialEq for Type1[src]

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

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.