Enum calyx_frontend::ast::Port
source · pub enum Port {
Comp {
component: Id,
port: Id,
},
This {
port: Id,
},
Hole {
group: Id,
name: Id,
},
}Expand description
Statement that refers to a port on a subcomponent.
This is distinct from a Portdef which defines a port.
Variants§
Comp
Refers to the port named port on the subcomponent
component.
This
Refers to the port named port on the component
currently being defined.
Hole
group[name] parses into Hole { group, name }
and is a hole named name on group group
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Port
impl Send for Port
impl Sync for Port
impl Unpin for Port
impl UnwindSafe for Port
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