Skip to main content

evaluate

Function evaluate 

Source
pub fn evaluate(
    v: &Validation,
    text: Option<&str>,
    slider: Option<SliderValue>,
    toggle: Option<Toggleable>,
) -> bool
Expand description

Pure validation function - handy for tests and any author-side script-bridge that wants to validate a value without spawning an entity. Pass the relevant slot for the entity’s kind; the other slots stay None.