Skip to main content

get

Function get 

Source
pub fn get<'a>(
    blocks: &'a [GutenbergBlock],
    path: &[usize],
) -> Result<&'a GutenbergBlock, EditError>
Expand description

The block at an index path. Paths come from find_path on the same tree, so the error, for an empty path or one the tree doesn’t have, means the location went stale.