[][src]Enum moore_vhdl::overload_resolver::OverloadReq

pub enum OverloadReq<'ctx> {
    Enum(TypeReq<'ctx>),
    Subprog(SignatureReq<'ctx>),
}

A type requirement on an overloaded entity.

To perform overload resolution, an overload requirement is imposed on a set of definitions. All definitions that match are returned.

Variants

Enum(TypeReq<'ctx>)

Definitions must resolve to an enum of the given type.

Subprog(SignatureReq<'ctx>)

Definitions must resolve to a subprogram that satisfies the given signature.

Implementations

impl<'ctx> OverloadReq<'ctx>[src]

pub fn matches(&self, ty: &Ty) -> bool[src]

Check if a type matches this requirement.

Trait Implementations

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

Auto Trait Implementations

impl<'ctx> RefUnwindSafe for OverloadReq<'ctx>

impl<'ctx> Send for OverloadReq<'ctx>

impl<'ctx> Sync for OverloadReq<'ctx>

impl<'ctx> Unpin for OverloadReq<'ctx>

impl<'ctx> UnwindSafe for OverloadReq<'ctx>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.