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>>where
S: Display,
Id: PartialEq<S>,
pub fn find<S>(&self, name: S) -> Option<RRC<Port>>where S: Display, Id: PartialEq<S>,
Get a reference to the named hole if it exists.
sourcepub fn get<S>(&self, name: S) -> RRC<Port>where
S: Display + Clone,
Id: PartialEq<S>,
pub fn get<S>(&self, name: S) -> RRC<Port>where S: Display + Clone, Id: PartialEq<S>,
Get a reference to the named hole or panic.
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 !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