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
Double
Float
Signed
Fields of Signed
size: usize |
Unsigned
Fields of Unsigned
size: usize |
Boolean
String
Bytes
Any
DateTime
ISO-8601 for date and time.
Name
Fields of Name
name: Loc<Name<'input>> |
Array
Fields of Array
inner: Box<Loc<Type<'input>>> |
Map
Fields of Map
key: Box<Loc<Type<'input>>> | |
value: Box<Loc<Type<'input>>> |
Error
A complete error.
Trait Implementations
impl<'input> Debug for Type<'input>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<'input> Clone for Type<'input>
[src]
fn clone(&self) -> Type<'input>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<'input> PartialEq for Type<'input>
[src]
fn eq(&self, __arg_0: &Type<'input>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Type<'input>) -> bool
[src]
This method tests for !=
.