expect_usize_expression

Function expect_usize_expression 

Source
pub fn expect_usize_expression<'a, L: TemplateLanguage<'a> + ?Sized>(
    language: &L,
    diagnostics: &mut TemplateDiagnostics,
    build_ctx: &BuildContext<'_, L::Property>,
    node: &ExpressionNode<'_>,
) -> TemplateParseResult<BoxedTemplateProperty<'a, usize>>
Expand description

If the given expression node is of Integer type, converts it to usize.