Struct calyx_ir::Assignment
source · pub struct Assignment<T> {
pub dst: RRC<Port>,
pub src: RRC<Port>,
pub guard: Box<Guard<T>>,
pub attributes: Attributes,
}
Expand description
Represents a guarded assignment in the program
Fields§
§dst: RRC<Port>
The destination for the assignment.
src: RRC<Port>
The source for the assignment.
guard: Box<Guard<T>>
The guard for this assignment.
attributes: Attributes
Attributes for this assignment.
Implementations§
source§impl<T> Assignment<T>
impl<T> Assignment<T>
source§impl<StaticTiming> Assignment<StaticTiming>
impl<StaticTiming> Assignment<StaticTiming>
sourcepub fn for_each_interval<F>(&mut self, f: F)where
F: FnMut(&mut StaticTiming) -> Option<Guard<StaticTiming>>,
pub fn for_each_interval<F>(&mut self, f: F)where F: FnMut(&mut StaticTiming) -> Option<Guard<StaticTiming>>,
Apply function f
to each port contained within the assignment and
replace the port with the generated value if not None.
Trait Implementations§
source§impl<T: Clone> Clone for Assignment<T>
impl<T: Clone> Clone for Assignment<T>
source§fn clone(&self) -> Assignment<T>
fn clone(&self) -> Assignment<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<T: Debug> Debug for Assignment<T>
impl<T: Debug> Debug for Assignment<T>
source§impl From<Assignment<Nothing>> for Assignment<StaticTiming>
impl From<Assignment<Nothing>> for Assignment<StaticTiming>
source§fn from(assgn: Assignment<Nothing>) -> Assignment<StaticTiming>
fn from(assgn: Assignment<Nothing>) -> Assignment<StaticTiming>
Turns a normal assignment into a static assignment
Auto Trait Implementations§
impl<T> !RefUnwindSafe for Assignment<T>
impl<T> !Send for Assignment<T>
impl<T> !Sync for Assignment<T>
impl<T> Unpin for Assignment<T>
impl<T> !UnwindSafe for Assignment<T>
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