pub struct FormulaVar {
pub name: String,
pub provider: String,
pub attr: VarAttr,
}Expand description
One variable a formula reads: the identifier it appears as, the node behind it, and which property of that node it denotes.
A plain <pVariable Name="V1">Gain</pVariable> becomes
{ name: "V1", provider: "Gain", attr: Value }. V1.Max in the formula
adds { name: "V1.Max", provider: "Gain", attr: Max }, and so does a
declaration spelled <pVariable Name="V1.Max">Gain</pVariable>.
Fields§
§name: StringIdentifier as written in the formula.
provider: StringNode the <pVariable> points at.
attr: VarAttrProperty of provider the identifier reads.
Trait Implementations§
Source§impl Clone for FormulaVar
impl Clone for FormulaVar
Source§impl Debug for FormulaVar
impl Debug for FormulaVar
impl Eq for FormulaVar
Source§impl PartialEq for FormulaVar
impl PartialEq for FormulaVar
impl StructuralPartialEq for FormulaVar
Auto Trait Implementations§
impl Freeze for FormulaVar
impl RefUnwindSafe for FormulaVar
impl Send for FormulaVar
impl Sync for FormulaVar
impl Unpin for FormulaVar
impl UnsafeUnpin for FormulaVar
impl UnwindSafe for FormulaVar
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