pub struct CommodityConstraint {
pub region_id: RegionID,
pub balance_type: BalanceType,
pub ts_selection: TimeSliceSelection,
pub limits: RangeInclusive<Flow>,
}Expand description
A constraint imposed on commodity values
Fields§
§region_id: RegionIDRegion to which the commodity constraint applies
balance_type: BalanceTypeThe balance type for the commodity constraint
ts_selection: TimeSliceSelectionThe time slice selection for the commodity constraint
limits: RangeInclusive<Flow>The range of values the commodity is constrained to lie between
Trait Implementations§
Source§impl Clone for CommodityConstraint
impl Clone for CommodityConstraint
Source§fn clone(&self) -> CommodityConstraint
fn clone(&self) -> CommodityConstraint
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CommodityConstraint
impl Debug for CommodityConstraint
Source§impl PartialEq for CommodityConstraint
impl PartialEq for CommodityConstraint
Source§fn eq(&self, other: &CommodityConstraint) -> bool
fn eq(&self, other: &CommodityConstraint) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CommodityConstraint
Auto Trait Implementations§
impl Freeze for CommodityConstraint
impl RefUnwindSafe for CommodityConstraint
impl Send for CommodityConstraint
impl Sync for CommodityConstraint
impl Unpin for CommodityConstraint
impl UnsafeUnpin for CommodityConstraint
impl UnwindSafe for CommodityConstraint
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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