Struct calyx_frontend::PortDef
source · pub struct PortDef<W> {
pub width: W,
pub direction: Direction,
pub attributes: Attributes,
/* private fields */
}
Expand description
Definition of a port parameterized by a width type.
Ports on Primitives can be parameteris and use Width.
Ports on Components cannot be parameterized and therefore use u64
.
Fields§
§width: W
The width of the port. .
direction: Direction
The direction of the port. Only allowed to be Direction::Input or Direction::Output.
attributes: Attributes
Attributes attached to this port definition
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<W> RefUnwindSafe for PortDef<W>where W: RefUnwindSafe,
impl<W> Send for PortDef<W>where W: Send,
impl<W> Sync for PortDef<W>where W: Sync,
impl<W> Unpin for PortDef<W>where W: Unpin,
impl<W> UnwindSafe for PortDef<W>where W: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more