Struct calyx_opt::analysis::ControlPorts
source · [−]pub struct ControlPorts<const INVOKE_MAP: bool> { /* private fields */ }
Expand description
Contains a mapping from name of ir::CombGroup to the ports read by the control program as well as the mapping from invoke statements to the port mappings. The vector of ports is guaranteed to only contain unique ports.
Implementations
sourceimpl<const INVOKE_MAP: bool> ControlPorts<INVOKE_MAP>
impl<const INVOKE_MAP: bool> ControlPorts<INVOKE_MAP>
sourcepub fn get(&self, group: &Id) -> Option<&Vec<RRC<Port>>>
pub fn get(&self, group: &Id) -> Option<&Vec<RRC<Port>>>
Return a reference to the port reads associated with the group.
sourcepub fn remove(&mut self, group: &Id) -> Option<Vec<RRC<Port>>>
pub fn remove(&mut self, group: &Id) -> Option<Vec<RRC<Port>>>
Remove the port reads associated with the group.
Trait Implementations
Auto Trait Implementations
impl<const INVOKE_MAP: bool> !RefUnwindSafe for ControlPorts<INVOKE_MAP>
impl<const INVOKE_MAP: bool> !Send for ControlPorts<INVOKE_MAP>
impl<const INVOKE_MAP: bool> !Sync for ControlPorts<INVOKE_MAP>
impl<const INVOKE_MAP: bool> Unpin for ControlPorts<INVOKE_MAP>
impl<const INVOKE_MAP: bool> !UnwindSafe for ControlPorts<INVOKE_MAP>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more