pub struct IntConverterNode {
pub name: String,
pub meta: NodeMeta,
pub p_value: String,
pub ast_to: AstNode,
pub ast_from: AstNode,
pub vars_to: Vec<FormulaVar>,
pub vars_from: Vec<FormulaVar>,
pub unit: Option<String>,
pub slope: Slope,
pub predicates: PredicateRefs,
/* private fields */
}Expand description
IntConverter node transforming a raw register value to/from an integer feature value via two formulas.
Same direction convention as ConverterNode, evaluated in integer
arithmetic.
Fields§
§name: StringUnique feature name.
meta: NodeMetaShared metadata (visibility, description, tooltip, etc.).
p_value: StringName of the node providing the raw register value.
ast_to: AstNodeParsed <FormulaTo>: feature value → raw value, evaluated on write.
ast_from: AstNodeParsed <FormulaFrom>: raw value → feature value, evaluated on read.
vars_to: Vec<FormulaVar>Variable mappings for <FormulaTo> (the write direction).
vars_from: Vec<FormulaVar>Variable mappings for <FormulaFrom> (the read direction).
unit: Option<String>Optional engineering unit.
slope: Slope<Slope>: how the value moves with the raw one.
predicates: PredicateRefsPredicate refs gating implementation / availability / lock state.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for IntConverterNode
impl !RefUnwindSafe for IntConverterNode
impl !Sync for IntConverterNode
impl Send for IntConverterNode
impl Unpin for IntConverterNode
impl UnsafeUnpin for IntConverterNode
impl UnwindSafe for IntConverterNode
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