pub struct StaticGroup {
pub assignments: Vec<Assignment<StaticTiming>>,
pub holes: SmallVec<[RRC<Port>; 3]>,
pub attributes: Attributes,
pub latency: u64,
/* private fields */
}
Expand description
A Group of assignments that perform a logical action.
Fields§
§assignments: Vec<Assignment<StaticTiming>>
The assignments used in this group
holes: SmallVec<[RRC<Port>; 3]>
Holes for this group
attributes: Attributes
Attributes for this group.
latency: u64
Latency of static group
Implementations§
Source§impl StaticGroup
implement the StaticGroup struct
impl StaticGroup
implement the StaticGroup struct
pub fn new(name: Id, latency: u64) -> Self
pub fn get_latency(&self) -> u64
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 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§
Source§impl Debug for StaticGroup
impl Debug for StaticGroup
Auto Trait Implementations§
impl Freeze for StaticGroup
impl !RefUnwindSafe for StaticGroup
impl !Send for StaticGroup
impl !Sync for StaticGroup
impl Unpin for StaticGroup
impl !UnwindSafe for StaticGroup
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