pub struct FormulaRow {
pub measure: MeasureId,
pub target: String,
pub text: String,
pub enabled: bool,
pub error: Option<String>,
}Expand description
One row of the formula pane: a single derived measure’s formula as the
reference’s numbered, checkable list shows it (✓ 1. Gross Margin = Sum of Revenue - Sum of Cost of Sales).
Built by ImprovApp::formula_rows in measure-id order; the display number
is the row’s 1-based position, not an identity, so inserting a formula
renumbers the list exactly as the reference does.
Fields§
§measure: MeasureIdThe measure this formula defines (clicking the row selects it).
target: StringThe target measure’s name — the left side of the displayed Target = ….
text: StringThe formula’s source text: the editable spelling when one exists, else
the controlled-English description (error then says so).
enabled: boolWhether the formula is enabled (the reference’s ✓). See
DISABLED_MARKER.
error: Option<String>Why this row is not sound, shown inline beneath it. None when the
formula compiles and has an editable spelling.
Trait Implementations§
Source§impl Clone for FormulaRow
impl Clone for FormulaRow
Source§fn clone(&self) -> FormulaRow
fn clone(&self) -> FormulaRow
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for FormulaRow
impl Debug for FormulaRow
Source§impl PartialEq for FormulaRow
impl PartialEq for FormulaRow
impl StructuralPartialEq for FormulaRow
Auto Trait Implementations§
impl Freeze for FormulaRow
impl RefUnwindSafe for FormulaRow
impl Send for FormulaRow
impl Sync for FormulaRow
impl Unpin for FormulaRow
impl UnsafeUnpin for FormulaRow
impl UnwindSafe for FormulaRow
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Data for Twhere
T: Clone + 'static,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> ProgressEventTimestamp for T
impl<T> ProgressEventTimestamp for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
§impl<'a, S, T> Semigroup<&'a S> for Twhere
T: Semigroup<S>,
impl<'a, S, T> Semigroup<&'a S> for Twhere
T: Semigroup<S>,
§fn plus_equals(&mut self, rhs: &&'a S)
fn plus_equals(&mut self, rhs: &&'a S)
std::ops::AddAssign, for types that do not implement AddAssign.