#[non_exhaustive]pub struct ConnectivityReport {
pub n_buses: usize,
pub n_branches_in_service: usize,
pub n_components: usize,
pub isolated_buses: Vec<usize>,
}Expand description
Topological invariants the TUI Inspect screen and downstream solvers care about.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.n_buses: usize§n_branches_in_service: usize§n_components: usize§isolated_buses: Vec<usize>Dense bus indices with no incident in-service branch.
Implementations§
Source§impl ConnectivityReport
impl ConnectivityReport
pub fn is_single_island(&self) -> bool
Trait Implementations§
Source§impl Clone for ConnectivityReport
impl Clone for ConnectivityReport
Source§fn clone(&self) -> ConnectivityReport
fn clone(&self) -> ConnectivityReport
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 ConnectivityReport
impl Debug for ConnectivityReport
Source§impl<'de> Deserialize<'de> for ConnectivityReport
impl<'de> Deserialize<'de> for ConnectivityReport
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ConnectivityReport, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ConnectivityReport, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for ConnectivityReport
impl Serialize for ConnectivityReport
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for ConnectivityReport
impl RefUnwindSafe for ConnectivityReport
impl Send for ConnectivityReport
impl Sync for ConnectivityReport
impl Unpin for ConnectivityReport
impl UnsafeUnpin for ConnectivityReport
impl UnwindSafe for ConnectivityReport
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