Struct calyx_ir::StaticRepeat
source · pub struct StaticRepeat {
pub attributes: Attributes,
pub body: Box<StaticControl>,
pub num_repeats: u64,
pub latency: u64,
}
Expand description
Data for the StaticRepeat
control statement. Essentially a static while loop.
Fields§
§attributes: Attributes
Attributes
body: Box<StaticControl>
Body to repeat
num_repeats: u64
Number of times to repeat the body
latency: u64
latency = num_repeats * (body latency)
Trait Implementations§
source§impl Debug for StaticRepeat
impl Debug for StaticRepeat
source§impl GetAttributes for StaticRepeat
impl GetAttributes for StaticRepeat
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 StaticRepeat
impl !Send for StaticRepeat
impl !Sync for StaticRepeat
impl Unpin for StaticRepeat
impl !UnwindSafe for StaticRepeat
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