pub struct OperationalLimits {
pub limit_sets: HashMap<String, OperationalLimitSet>,
}Expand description
Container for all operational limits on the Network.
Fields§
§limit_sets: HashMap<String, OperationalLimitSet>All limit sets, keyed by CIM mRID.
Implementations§
Source§impl OperationalLimits
impl OperationalLimits
Sourcepub fn total_limit_count(&self) -> usize
pub fn total_limit_count(&self) -> usize
Total number of individual limit values across all sets.
Sourcepub fn sets_for_equipment<'a>(
&'a self,
equipment_mrid: &'a str,
) -> impl Iterator<Item = &'a OperationalLimitSet>
pub fn sets_for_equipment<'a>( &'a self, equipment_mrid: &'a str, ) -> impl Iterator<Item = &'a OperationalLimitSet>
Iterate all limit sets attached to a given equipment mRID.
Sourcepub fn sets_for_bus(
&self,
bus: u32,
) -> impl Iterator<Item = &OperationalLimitSet>
pub fn sets_for_bus( &self, bus: u32, ) -> impl Iterator<Item = &OperationalLimitSet>
Iterate all limit sets attached to a given bus number.
Trait Implementations§
Source§impl Clone for OperationalLimits
impl Clone for OperationalLimits
Source§fn clone(&self) -> OperationalLimits
fn clone(&self) -> OperationalLimits
Returns a duplicate of the value. Read more
1.0.0 · 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 OperationalLimits
impl Debug for OperationalLimits
Source§impl Default for OperationalLimits
impl Default for OperationalLimits
Source§fn default() -> OperationalLimits
fn default() -> OperationalLimits
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for OperationalLimits
impl<'de> Deserialize<'de> for OperationalLimits
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for OperationalLimits
impl RefUnwindSafe for OperationalLimits
impl Send for OperationalLimits
impl Sync for OperationalLimits
impl Unpin for OperationalLimits
impl UnsafeUnpin for OperationalLimits
impl UnwindSafe for OperationalLimits
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