pub struct Formula { /* private fields */ }Expand description
A microgrid metric formula generated by traversing the component graph.
Formulas represent quantities derived from multiple components — both
aggregated metrics like power or current (which can be added and
subtracted), and coalesced metrics like AC voltage or frequency. They can be
combined with +, -, coalesce, min and
max, and converted to a string before being passed to an
evaluator.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Formula
Auto Trait Implementations§
impl Freeze for Formula
impl RefUnwindSafe for Formula
impl Send for Formula
impl Sync for Formula
impl Unpin for Formula
impl UnsafeUnpin for Formula
impl UnwindSafe for Formula
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