pub struct Switch {
pub bus: usize,
pub name: String,
pub element: usize,
pub et: String,
pub type: String,
pub closed: bool,
pub in_ka: f64,
}Fields§
§bus: usizeindex of connected bus
name: Stringname of the switch
element: usize| index of the element the switch is connected to: /// /// | - bus index if et = “b” /// | - line index if et = “l” /// | - trafo index if et = “t”
et: Stringelement type the switch connects to
type: Stringtype of switch
closed: boolsignals the switching state of the switch
in_ka: f64maximum current that the switch can carry under normal operating conditions without tripping
Auto Trait Implementations§
impl Freeze for Switch
impl RefUnwindSafe for Switch
impl Send for Switch
impl Sync for Switch
impl Unpin 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