[][src]Enum cddl_cat::ivt::PreludeType

pub enum PreludeType {
    Any,
    Nil,
    Bool,
    Int,
    Uint,
    Nint,
    Float,
    Tstr,
    Bstr,
}

One of the types named in the CDDL prelude.

The following types are defined in RFC8610 appendix D: any, bool, int, uint, float, tstr, bstr. There are more that aren't supported by this crate yet.

Variants

Any

Any type or embedded data structure

Nil

Nil aka null: nothing.

Bool

A boolean value: true or false

Int

A positive or negative integer

Uint

An integer >= 0

Nint

An integer < 0

Float

A floating-point value

Tstr

A text string

Bstr

A byte string

Trait Implementations

impl Clone for PreludeType[src]

impl Copy for PreludeType[src]

impl Debug for PreludeType[src]

impl Display for PreludeType[src]

impl PartialEq<PreludeType> for PreludeType[src]

impl StructuralPartialEq for PreludeType[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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[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.