Struct kailua_syntax::ast::TypeSpec [] [src]

pub struct TypeSpec<T> {
    pub base: T,
    pub modf: MM,
    pub kind: Option<Spanned<Kind>>,
}

Any node that can be optionally annotated with a Kailua type.

Fields

The base node.

An extended modifier (e.g. const or module) for the type.

Defaults to MM::None when the annotation is absent. This is distinct from the type because --: const etc. are allowed.

The type, if explicitly given.

Methods

impl<T> TypeSpec<T>
[src]

Trait Implementations

impl<T: Clone> Clone for TypeSpec<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: PartialEq> PartialEq for TypeSpec<T>
[src]

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

This method tests for !=.

impl<T: Debug> Debug for TypeSpec<T>
[src]

Formats the value using the given formatter.