[][src]Struct moore_vhdl::overload_resolver::SignatureReq

pub struct SignatureReq<'ctx> {
    pub return_type: TypeReq<'ctx>,
    pub positional: Vec<TypeReq<'ctx>>,
    pub named: HashMap<Name, TypeReq<'ctx>>,
}

A signature requirement on an overloaded entity.

Fields

return_type: TypeReq<'ctx>

The required return type.

positional: Vec<TypeReq<'ctx>>

The required type of the positional arguments.

named: HashMap<Name, TypeReq<'ctx>>

The required type of the named arguments.

Implementations

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

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

Check if a type matches this requirement.

Trait Implementations

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

Auto Trait Implementations

impl<'ctx> RefUnwindSafe for SignatureReq<'ctx>

impl<'ctx> Send for SignatureReq<'ctx>

impl<'ctx> Sync for SignatureReq<'ctx>

impl<'ctx> Unpin for SignatureReq<'ctx>

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