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 Freeze for StaticRepeat
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
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