Skip to main content

is_in_exercise

Function is_in_exercise 

Source
pub fn is_in_exercise(
    blocks: &[GutenbergBlock],
    path: &[usize],
    include_self: bool,
) -> Result<bool, EditError>
Expand description

Whether the block at path is inside an exercise’s editor tree; with include_self, also whether it is part of one itself. Errors with stale_location if the tree lacks path.