Skip to main content

modifier_prefix

Function modifier_prefix 

Source
pub fn modifier_prefix<'gcx>(
    hir: &'gcx Hir<'gcx>,
    fid: FunctionId,
) -> Option<Vec<&'gcx Stmt<'gcx>>>
Expand description

The statements a modifier runs before its unique _;, when that placeholder is reached unconditionally. None for non-modifiers, bodiless modifiers and conditional placeholders.