[][src]Enum moore_vhdl::overload_resolver::TypeReq

pub enum TypeReq<'ctx> {
    Any,
    One(&'ctx Ty),
    Many(Vec<&'ctx Ty>),
}

A type requirement on an overloaded entity.

Variants

Any

Matches any type.

One(&'ctx Ty)

Matches one specific type.

Many(Vec<&'ctx Ty>)

Matches several specific types.

Implementations

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

pub fn is_any(&self) -> bool[src]

Check if this type requirement matches any type.

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

Check if a type matches this requirement.

Trait Implementations

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

impl<'ctx> Default for TypeReq<'ctx>[src]

Auto Trait Implementations

impl<'ctx> RefUnwindSafe for TypeReq<'ctx>

impl<'ctx> Send for TypeReq<'ctx>

impl<'ctx> Sync for TypeReq<'ctx>

impl<'ctx> Unpin for TypeReq<'ctx>

impl<'ctx> UnwindSafe for TypeReq<'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.