srdf::srdf_parser

Function cond

Source
pub fn cond<RDF, A>(
    value: &A,
    pred: impl FnMut(&A) -> bool,
    fail_msg: String,
) -> impl RDFNodeParse<RDF, Output = ()>
where RDF: FocusRDF, A: Clone,
Expand description

Applies a function and returns its result