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
Type(Spanned<Name>)
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.
Var(Spanned<Name>)
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]
fn can_override(&self, prev: &DisplayName) -> bool
Trait Implementations
impl Clone for DisplayName
[src]
fn clone(&self) -> DisplayName
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for DisplayName
[src]
impl PartialEq for DisplayName
[src]
fn eq(&self, other: &DisplayName) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.