pub struct Selector {
pub area: Option<(usize, usize)>,
pub zone: Option<(usize, usize)>,
pub base_kv: Option<(f64, f64)>,
pub bus: Option<(usize, usize)>,
}Expand description
Which buses a subset keeps: inclusive ranges over area,
zone, base kV, and bus number, ANDed together. An unset (None) filter
matches every bus, so Selector::default selects the whole network.
Fields§
§area: Option<(usize, usize)>Inclusive (low, high) area-number range.
zone: Option<(usize, usize)>Inclusive (low, high) zone-number range.
base_kv: Option<(f64, f64)>Inclusive (low, high) base-kV range.
bus: Option<(usize, usize)>Inclusive (low, high) bus-number range.
Trait Implementations§
impl StructuralPartialEq for Selector
Auto Trait Implementations§
impl Freeze for Selector
impl RefUnwindSafe for Selector
impl Send for Selector
impl Sync for Selector
impl Unpin for Selector
impl UnsafeUnpin for Selector
impl UnwindSafe for Selector
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