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
Type(&'ctx Ty)
The exact type the expression must have.
TypeOf(TypedNodeRef)
The node whose type the expression must match.
Inherit(NodeId)
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]
fn clone(&self) -> TypeCtx<'ctx>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<'ctx> Debug for TypeCtx<'ctx>
[src]
impl<'ctx> PartialEq for TypeCtx<'ctx>
[src]
fn eq(&self, __arg_0: &TypeCtx<'ctx>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &TypeCtx<'ctx>) -> bool
[src]
This method tests for !=
.
impl<'ctx> Eq for TypeCtx<'ctx>
[src]
impl<'ctx> From<&'ctx Ty> for TypeCtx<'ctx>
[src]
impl<'ctx, T> From<T> for TypeCtx<'ctx> where
TypedNodeRef: From<T>,
[src]
TypedNodeRef: From<T>,