#[non_exhaustive]pub struct DistGraphBus {
pub id: String,
pub terminals: Vec<String>,
pub grounded: Vec<String>,
pub xy: Option<[f64; 2]>,
pub load_kw: f64,
pub gen_kw: f64,
pub has_source: bool,
pub terminal_attachments: BTreeMap<String, Vec<DistGraphAttachment>>,
}Expand description
One bus node in the collapsed graph.
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.id: String§terminals: Vec<String>§grounded: Vec<String>§xy: Option<[f64; 2]>§load_kw: f64§gen_kw: f64§has_source: bool§terminal_attachments: BTreeMap<String, Vec<DistGraphAttachment>>Trait Implementations§
Source§impl Clone for DistGraphBus
impl Clone for DistGraphBus
Source§fn clone(&self) -> DistGraphBus
fn clone(&self) -> DistGraphBus
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 DistGraphBus
impl Debug for DistGraphBus
Source§impl<'de> Deserialize<'de> for DistGraphBus
impl<'de> Deserialize<'de> for DistGraphBus
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
Source§impl PartialEq for DistGraphBus
impl PartialEq for DistGraphBus
Source§impl Serialize for DistGraphBus
impl Serialize for DistGraphBus
impl StructuralPartialEq for DistGraphBus
Auto Trait Implementations§
impl Freeze for DistGraphBus
impl RefUnwindSafe for DistGraphBus
impl Send for DistGraphBus
impl Sync for DistGraphBus
impl Unpin for DistGraphBus
impl UnsafeUnpin for DistGraphBus
impl UnwindSafe for DistGraphBus
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