#[non_exhaustive]pub struct ResolvedComponent {
pub component_type: &'static str,
pub id: Option<ComponentId>,
pub row: usize,
pub in_service: bool,
}Expand description
One network element a case’s action bound to.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.component_type: &'static strThe component type naming the table row indexes: bus, load,
shunt, generator, branch, or transformer_3w. Every component
states it, including one the network states no identity for.
id: Option<ComponentId>The element’s identity, when the network states one for the row: its
uid, under component_type. A row carrying no uid, or one
[ComponentId] does not accept, states None. A caller that needs
persistent identities calls assign_missing_component_ids on the
network before building the index, which gives every row a uid.
row: usizeThe element’s position in the table component_type names.
in_service: boolThe element’s own in service flag as the network states it now, before the case is applied. For a bus it is whether the bus type is anything other than isolated.
Trait Implementations§
Source§impl Clone for ResolvedComponent
impl Clone for ResolvedComponent
Source§fn clone(&self) -> ResolvedComponent
fn clone(&self) -> ResolvedComponent
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ResolvedComponent
impl Debug for ResolvedComponent
impl Eq for ResolvedComponent
Source§impl PartialEq for ResolvedComponent
impl PartialEq for ResolvedComponent
Source§fn eq(&self, other: &ResolvedComponent) -> bool
fn eq(&self, other: &ResolvedComponent) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ResolvedComponent
Auto Trait Implementations§
impl Freeze for ResolvedComponent
impl RefUnwindSafe for ResolvedComponent
impl Send for ResolvedComponent
impl Sync for ResolvedComponent
impl Unpin for ResolvedComponent
impl UnsafeUnpin for ResolvedComponent
impl UnwindSafe for ResolvedComponent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.