pub struct Measurement {
pub type: String,
pub element_type: String,
pub value: f64,
pub std_dev: f64,
pub bus: usize,
pub element: usize,
pub check_existing: bool,
pub index: usize,
}Fields§
§type: StringDefines what physical quantity is measured
element_type: StringDefines which element type is equipped with the measurement
value: f64Measurement value
std_dev: f64Standard deviation (same unit as measurement)
bus: usizeDefines the bus at which the measurement is placed. /// For line or transformer measurement it defines the side at which the measurement is placed (from_bus or to_bus).
element: usizeIf the element_type is “line” or “transformer”, element is the index of the relevant element. For “bus” measurements it is None (default)
check_existing: boolChecks if a measurement of the type already exists and overwrites it. If set to False, the measurement may be added twice (unsafe behaviour), but the performance increases
index: usizeDefines a specific index for the new measurement (if possible)
Auto Trait Implementations§
impl Freeze for Measurement
impl RefUnwindSafe for Measurement
impl Send for Measurement
impl Sync for Measurement
impl Unpin for Measurement
impl UnwindSafe for Measurement
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