#[non_exhaustive]pub struct DistLineCode {
pub name: String,
pub n_conductors: usize,
pub r_series: Mat,
pub x_series: Mat,
pub g_from: Mat,
pub b_from: Mat,
pub g_to: Mat,
pub b_to: Mat,
pub i_max: Option<Vec<f64>>,
pub s_max: Option<Vec<f64>>,
pub extras: Extras,
}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.name: String§n_conductors: usize§r_series: MatSeries impedance, ohm per meter.
x_series: Mat§g_from: MatShunt admittance halves at each end, S per meter.
b_from: Mat§g_to: Mat§b_to: Mat§i_max: Option<Vec<f64>>Ampacity per conductor.
s_max: Option<Vec<f64>>§extras: ExtrasImplementations§
Trait Implementations§
Source§impl Clone for DistLineCode
impl Clone for DistLineCode
Source§fn clone(&self) -> DistLineCode
fn clone(&self) -> DistLineCode
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 DistLineCode
impl Debug for DistLineCode
Source§impl<'de> Deserialize<'de> for DistLineCode
impl<'de> Deserialize<'de> for DistLineCode
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 DistLineCode
impl PartialEq for DistLineCode
Source§impl Serialize for DistLineCode
impl Serialize for DistLineCode
impl StructuralPartialEq for DistLineCode
Auto Trait Implementations§
impl Freeze for DistLineCode
impl RefUnwindSafe for DistLineCode
impl Send for DistLineCode
impl Sync for DistLineCode
impl Unpin for DistLineCode
impl UnsafeUnpin for DistLineCode
impl UnwindSafe for DistLineCode
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