Struct calyx_ir::StaticEnable
source · pub struct StaticEnable {
pub group: RRC<StaticGroup>,
pub attributes: Attributes,
}
Expand description
Data for the enable
control for a static group.
Fields§
§group: RRC<StaticGroup>
List of components to run.
attributes: Attributes
Attributes attached to this control statement.
Implementations§
source§impl StaticEnable
impl StaticEnable
sourcepub fn get_attribute(&self, attr: Attribute) -> Option<u64>
pub fn get_attribute(&self, attr: Attribute) -> Option<u64>
Returns the value of an attribute if present
Trait Implementations§
source§impl Debug for StaticEnable
impl Debug for StaticEnable
source§impl From<StaticEnable> for StaticControl
impl From<StaticEnable> for StaticControl
source§fn from(se: StaticEnable) -> Self
fn from(se: StaticEnable) -> Self
Converts to this type from the input type.
source§impl GetAttributes for StaticEnable
impl GetAttributes for StaticEnable
source§fn get_attributes(&self) -> &Attributes
fn get_attributes(&self) -> &Attributes
Returns an
Attributes
instancesource§fn get_mut_attributes(&mut self) -> &mut Attributes
fn get_mut_attributes(&mut self) -> &mut Attributes
Returns a mutable
Attributes
instanceAuto Trait Implementations§
impl !RefUnwindSafe for StaticEnable
impl !Send for StaticEnable
impl !Sync for StaticEnable
impl Unpin for StaticEnable
impl !UnwindSafe for StaticEnable
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