pub struct SkNode {
pub name: String,
pub output: SkOutput,
pub ast: AstNode,
pub vars: Vec<(String, String)>,
pub cache: RefCell<Option<(f64, u64)>>,
}Expand description
SwissKnife node evaluating an arithmetic expression referencing other nodes.
Integer outputs follow round-to-nearest semantics with ties towards zero
after the expression has been evaluated as f64.
Fields§
§name: StringUnique feature name.
output: SkOutputDesired output type as declared in the XML.
ast: AstNodeParsed expression AST.
vars: Vec<(String, String)>Mapping of variable identifiers to provider node names.
cache: RefCell<Option<(f64, u64)>>Cached value alongside the generation it was computed in.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for SkNode
impl !RefUnwindSafe for SkNode
impl Send for SkNode
impl !Sync for SkNode
impl Unpin for SkNode
impl UnwindSafe for SkNode
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