Skip to main content

bind

Function bind 

Source
pub fn bind<'m, 'd, 'p, E>(
    prepared: &Preparation<'m, 'd>,
    parent: &Reader<'d>,
    select: impl FnMut(Context<'_, 'm, 'd>) -> Result<Binding<'m, 'd, 'p>, E>,
) -> Result<Bindings<'m, 'd, 'p>, BindingsError<E>>
Expand description

Visits the complete original nested counter set, allowing only selection and use of Context::check. Returned bindings are checked against the actual current child/parent/source before being retained. A callback cannot replay a receipt for another child, and a malformed value cannot be silently skipped.