Enum kailua_types::ty::DisplayName [] [src]

pub enum DisplayName {
    Type(Spanned<Name>),
    Var(Spanned<Name>),
}

A display name associated to the type or a portion of the type (in the Unioned).

Variants

The type originates from a type name.

This is always displayed, but an option can be used to ignore it on the top-level. Currently the option is enabled for printing a type from the hover help.

The type originates from a variable.

This is a weak hint, as this is only useful when the containing type is complex enough that any hint will be useful. Type names will override this hint.

Methods

impl DisplayName
[src]

Trait Implementations

impl Clone for DisplayName
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for DisplayName
[src]

Formats the value using the given formatter.

impl PartialEq for DisplayName
[src]

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

This method tests for !=.

impl Display for DisplayName
[src]