pub struct Slot {
pub component: Box<dyn Component>,
pub power: f64,
pub limits: [Option<f64>; 4],
}Expand description
A component with its share of the budget.
Fields§
§component: Box<dyn Component>The component.
power: f64Percentage of the budget this module gets (set by the side balancing; ignored for fixed components).
limits: [Option<f64>; 4]Optional manual shares, as % of the budget’s LUT, DSP, BRAM and URAM
(Resource order). A set limit replaces the power-derived share of
that resource and is a hard cap: the module never borrows more of
it. None (the default) leaves the resource to the powers and to
lending.
Implementations§
Auto Trait Implementations§
impl Freeze for Slot
impl !RefUnwindSafe for Slot
impl !Send for Slot
impl !Sync for Slot
impl Unpin for Slot
impl UnsafeUnpin for Slot
impl !UnwindSafe for Slot
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