Enum over::types::Type [] [src]

pub enum Type {
    Empty,
    Null,
    Bool,
    Int,
    Frac,
    Char,
    Str,
    Arr(Box<Type>),
    Tup(Vec<Type>),
    Obj,
}

Enum of possible types for Value.

Variants

A type used to indicate an empty Arr.

Null value.

A boolean type.

A signed integer type.

A fractional type.

A character type.

A string type.

An array type, containing the type of its sub-elements.

A tuple type, containing the types of its sub-elements.

An object type.

Methods

impl Type
[src]

[src]

Returns true if this type is strictly the same as other.

Trait Implementations

impl Clone for Type
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Type
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for Type
[src]

Two types are considered equal if one of them is Empty or they have the same variant.

[src]

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

1.0.0
[src]

This method tests for !=.

impl Eq for Type
[src]

impl Display for Type
[src]

[src]

Formats the value using the given formatter. Read more