Skip to main content

switch

Function switch 

Source
fn switch(
    field: &'static str,
    desired: Option<bool>,
    live: Option<bool>,
    operation: fn(bool) -> Operation,
    diff: &mut FieldDiff,
    report: &mut Report,
) -> Option<Operation>