Enum reproto_ast::Type [] [src]

pub enum Type<'input> {
    Double,
    Float,
    Signed {
        size: usize,
    },
    Unsigned {
        size: usize,
    },
    Boolean,
    String,
    Bytes,
    Any,
    DateTime,
    Name {
        name: Loc<Name<'input>>,
    },
    Array {
        inner: Box<Loc<Type<'input>>>,
    },
    Map {
        key: Box<Loc<Type<'input>>>,
        value: Box<Loc<Type<'input>>>,
    },
    Error,
}

A type.

For example: u32, ::Relative::Name, or bytes.

Variants

Fields of Signed

Fields of Unsigned

ISO-8601 for date and time.

Fields of Name

Fields of Array

Fields of Map

A complete error.

Trait Implementations

impl<'input> Debug for Type<'input>
[src]

[src]

Formats the value using the given formatter. Read more

impl<'input> Clone for Type<'input>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'input> PartialEq for Type<'input>
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl<'input> Eq for Type<'input>
[src]

Auto Trait Implementations

impl<'input> Send for Type<'input>

impl<'input> Sync for Type<'input>