#[non_exhaustive]pub struct Switch {
pub from: BusId,
pub to: BusId,
pub closed: bool,
pub thermal_rating: Option<f64>,
pub current_rating: Option<f64>,
pub pf: Option<f64>,
pub qf: Option<f64>,
pub pt: Option<f64>,
pub qt: Option<f64>,
pub uid: Option<String>,
pub extras: Extras,
}Expand description
A transmission switch. Closed switches are preserved as data; matrix builders do not lower them into zero impedance branches.
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.from: BusId§to: BusId§closed: bool§thermal_rating: Option<f64>§current_rating: Option<f64>§pf: Option<f64>§qf: Option<f64>§pt: Option<f64>§qt: Option<f64>§uid: Option<String>Stable row identity; see Bus::uid.
extras: ExtrasImplementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Switch
impl<'de> Deserialize<'de> for Switch
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 Switch
impl RefUnwindSafe for Switch
impl Send for Switch
impl Sync for Switch
impl Unpin for Switch
impl UnsafeUnpin for Switch
impl UnwindSafe for Switch
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