Enum dyon::ty::Type[][src]

pub enum Type {
    Unreachable,
    Void,
    Any,
    Bool,
    F64,
    Vec4,
    Text,
    Link,
    Array(Box<Type>),
    Object,
    Option(Box<Type>),
    Result(Box<Type>),
    Secret(Box<Type>),
    Thread(Box<Type>),
    In(Box<Type>),
    AdHoc(Arc<String>, Box<Type>),
    Closure(Box<Dfn>),
}

Variants

Whether a statement is never reached.

Methods

impl Type
[src]

Returns true if a type goes with another type (directional check).

  • bool (argument) goes with sec[bool] (value)
  • f64 (argument) goes with sec[f64] (value)

The opposite is not true, since sec contains extra information.

Trait Implementations

impl Debug for Type
[src]

Formats the value using the given formatter. Read more

impl Clone for Type
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Type
[src]

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

This method tests for !=.

Auto Trait Implementations

impl Send for Type

impl Sync for Type