[][src]Struct moore_vhdl::builtin::Builtin

pub struct Builtin {
    pub def: Def,
    pub name: ResolvableName,
    pub ty: Option<Ty>,
}

A builtin type, function, or operator.

Fields

def: Def

The definition of this builtin.

name: ResolvableName

The name of this builtin.

ty: Option<Ty>

The type of this builtin.

Implementations

impl Builtin[src]

pub fn new<N: Into<ResolvableName>>(def: Def, name: N) -> Builtin[src]

Create a new builtin with a definition and a name.

pub fn operator<O: Into<Operator>>(op: O) -> Builtin[src]

Create a new builtin operator.

pub fn ty<T: Into<Ty>>(self, ty: T) -> Builtin[src]

Assign a type to the builtin.

Panics if the builtin already has a type.

Trait Implementations

impl Debug for Builtin[src]

Auto Trait Implementations

impl RefUnwindSafe for Builtin

impl Send for Builtin

impl Sync for Builtin

impl Unpin for Builtin

impl UnwindSafe for Builtin

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.