pub struct Group {
pub assignments: Vec<Assignment<Nothing>>,
pub holes: SmallVec<[RRC<Port>; 3]>,
pub attributes: Attributes,
/* private fields */
}
Expand description
A Group of assignments that perform a logical action.
Fields§
§assignments: Vec<Assignment<Nothing>>
The assignments used in this group
holes: SmallVec<[RRC<Port>; 3]>
Holes for this group
attributes: Attributes
Attributes for this group.
Implementations§
Source§impl Group
impl Group
pub fn new(name: Id) -> Self
Sourcepub fn find<S>(&self, name: S) -> Option<RRC<Port>>
pub fn find<S>(&self, name: S) -> Option<RRC<Port>>
Get a reference to the named hole if it exists.
Sourcepub fn done_cond(&self) -> &Assignment<Nothing>
pub fn done_cond(&self) -> &Assignment<Nothing>
Returns a reference to the assignment in the group that writes to the done condition.
Sourcepub fn done_cond_mut(&mut self) -> &mut Assignment<Nothing>
pub fn done_cond_mut(&mut self) -> &mut Assignment<Nothing>
Returns a mutable reference to the assignment in the group that writes to the done condition.
Sourcepub fn get_attributes(&self) -> Option<&Attributes>
pub fn get_attributes(&self) -> Option<&Attributes>
The attributes of this group.
pub fn remove_attribute(&mut self, attr: Attribute)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Group
impl !RefUnwindSafe for Group
impl !Send for Group
impl !Sync for Group
impl Unpin for Group
impl !UnwindSafe for Group
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