pub struct SubroutinePortData<'a> {
    pub dir: Option<SubroutinePortDir>,
    pub var: bool,
    pub ty_name: Ambiguous<(Type<'a>, Option<SubroutinePortName<'a>>)>,
}
Expand description

A function or task port.

This is the inout logic [7:0] part in inout logic [7:0] x[3].

Since the grammar allows for both omitting the type and omitting the port name (the latter only if the subroutine has no body, i.e. is a prototype), there is an ambiguity when just a name is provided: foo may be a port with implicit type, if foo is not a defined type or the subroutine is not a prototype, or foo may be a port of type foo without a name, if foo is a defined type.

Fields

dir: Option<SubroutinePortDir>

The direction of the port, if provided.

var: bool

Whether an explicit var keyword was present.

ty_name: Ambiguous<(Type<'a>, Option<SubroutinePortName<'a>>)>

The type and/or name of the port.

Trait Implementations

Walk a visitor over the contents of self.

Get this node’s name, or None if it does not have one.

Describe this node for diagnostics in indefinite form, e.g. “entity”. Read more

Describe this node for diagnostics in definite form, e.g. “entity ‘top’”. Read more

Describe this node for diagnostics in indefinite form, e.g. “entity”.

Describe this node for diagnostics in definite form, e.g. “entity ‘top’”. Read more

Describe this node for diagnostics in indefinite form, e.g. “entity”.

Describe this node for diagnostics in definite form, e.g. “entity ‘top’”. Read more

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Apply a function to each child node.

Apply a function to this node.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.