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>
Sourcepub fn for_each_port<F>(&mut self, f: F)
pub fn for_each_port<F>(&mut self, f: F)
Apply function f
to each port contained within the assignment and
replace the port with the generated value if not None.
Sourcepub fn iter_ports(&self) -> impl Iterator<Item = RRC<Port>>
pub fn iter_ports(&self) -> impl Iterator<Item = RRC<Port>>
Iterate through all ports contained within the assignment.
Source§impl<StaticTiming> Assignment<StaticTiming>
impl<StaticTiming> Assignment<StaticTiming>
Sourcepub fn for_each_interval<F>(&mut self, f: F)
pub fn for_each_interval<F>(&mut self, f: F)
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> Freeze for Assignment<T>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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