fn iterate_extents_in_leaf<B: ByteSlice, F: FnMut(&Extent) -> Result<(), ParsingError>>(
        &self,
        extent_tree_node: &ExtentTreeNode<B>,
        extent_handler: &mut F,
    ) -> Result<(), ParsingError> {
        for e_index in 0..extent_tree_node.header.eh_ecount.get() {
            let start = size_of::<Extent>() * e_index as usize;
            let end = start + size_of::<Extent>() as usize;
            let e = Extent::to_struct_ref(
                &(extent_tree_node.entries)[start..end],
                ParsingError::InvalidExtent(start as u64),
            )?;

            extent_handler(e)?;
        }

        Ok(())
    }
/// Handles an extent tree leaf node by invoking `extent_handler` for each contained extent.
Handles an extent tree leaf node by invoking `extent_handler` for each contained extent.
Handles an extent tree leaf node by invoking ` extent_handler ` for each contained extent .
fn iterate_extents_in_leaf<B: ByteSlice, F: FnMut(&Extent) -> Result<(), ParsingError>>(
        &self,
        extent_tree_node: &ExtentTreeNode<B>,
        extent_handler: &mut F,
    ) -> Result<(), ParsingError> {
        for e_index in 0..extent_tree_node.header.eh_ecount.get() {
            let start = size_of::<Extent>() * e_index as usize;
            let end = start + size_of::<Extent>() as usize;
            let e = Extent::to_struct_ref(
                &(extent_tree_node.entries)[start..end],
                ParsingError::InvalidExtent(start as u64),
            )?;
            extent_handler(e)?;
        }
        Ok(())
    }
fn iterate_extents_in_leaf < B : ByteSlice , F : FnMut ( & Extent ) -> Result < ( ) , ParsingError > > ( & self , extent_tree_node : & ExtentTreeNode < B > , extent_handler : & mut F , ) -> Result < ( ) , ParsingError > { for e_index in 0 .. extent_tree_node . header . eh_ecount . get ( ) { let start = size_of :: < Extent > ( ) * e_index as usize ; let end = start + size_of :: < Extent > ( ) as usize ; let e = Extent :: to_struct_ref ( & ( extent_tree_node . entries ) [ start .. end ] , ParsingError :: InvalidExtent ( start as u64 ) , ) ? ; extent_handler ( e ) ? ; } Ok ( ( ) ) }
Handles an extent tree leaf node by invoking `extent_handler` for each contained extent.
Handles an extent tree leaf node by invoking ` extent_handler ` for each contained extent .
&self
extent_tree_node
&ExtentTreeNode<B>
extent_handler
&mut F
&self
extent_tree_node
&ExtentTreeNode<B>
extent_handler
&mut F