[][src]Struct moore_vhdl::ty::SubprogTy

pub struct SubprogTy {
    pub args: Vec<SubprogTyArg>,
    pub ret: Option<Box<Ty>>,
}

A subprogram type.

This is the type assigned to function and procedure declarations, as well as builtin operators.

Fields

args: Vec<SubprogTyArg>

The argument names and types.

ret: Option<Box<Ty>>

The return type. May be None in case of a procedure type.

Implementations

impl SubprogTy[src]

pub fn new(args: Vec<SubprogTyArg>, ret: Option<Ty>) -> SubprogTy[src]

Create a new subprogram type.

Trait Implementations

impl Clone for SubprogTy[src]

impl Debug for SubprogTy[src]

impl Display for SubprogTy[src]

impl Eq for SubprogTy[src]

impl From<SubprogTy> for Ty[src]

impl PartialEq<SubprogTy> for SubprogTy[src]

impl StructuralEq for SubprogTy[src]

impl StructuralPartialEq for SubprogTy[src]

Auto Trait Implementations

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[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.