[][src]Trait bracket::helper::Assertion

pub trait Assertion {
    fn arity(&self, context: &Context<'_>, range: Range<usize>) -> BlockResult;
}

Trait for types that provide helper assertions.

Required methods

fn arity(&self, context: &Context<'_>, range: Range<usize>) -> BlockResult

Assert that the context arguments are in the given arity range.

Loading content...

Implementors

impl<'_, '_, '_> Assertion for Render<'_, '_, '_>[src]

Loading content...