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§
Source§impl<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> Freeze for ControlPorts<INVOKE_MAP>
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§
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more