Enum moore_vhdl::score::TypeCtx [] [src]

pub enum TypeCtx<'ctx> {
    Type(&'ctx Ty),
    TypeOf(TypedNodeRef),
    Inherit(NodeId),
}

The type requirements imposed upon an expression by its context. This is needed for overload resolution, where the type of the overload to be picked is determined by the context in which the expression appears.

Variants

The exact type the expression must have.

The node whose type the expression must match.

The node whose type context the expression must inherit.

Trait Implementations

impl<'ctx> Copy for TypeCtx<'ctx>
[src]

impl<'ctx> Clone for TypeCtx<'ctx>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'ctx> Debug for TypeCtx<'ctx>
[src]

[src]

Formats the value using the given formatter.

impl<'ctx> PartialEq for TypeCtx<'ctx>
[src]

[src]

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

[src]

This method tests for !=.

impl<'ctx> Eq for TypeCtx<'ctx>
[src]

impl<'ctx> From<&'ctx Ty> for TypeCtx<'ctx>
[src]

[src]

Performs the conversion.

impl<'ctx, T> From<T> for TypeCtx<'ctx> where
    TypedNodeRef: From<T>, 
[src]

[src]

Performs the conversion.