fn collect_node_values(&mut self, node: &Node) -> Vec<T> {

        let mut result : Vec<T> = Vec::new();
        let mut leaf_ptr = node.leaf;

        while !leaf_ptr.is_null() {
            let v: &T = self.fileset.read_fixed(leaf_ptr);
            let leaf: Leaf<T> = Leaf::new(*v);
            result.push(leaf.value);

            leaf_ptr = leaf.next;
        }
        result
    }
/// Collects all the values stored at the given node
Collects all the values stored at the given node
Collects all the values stored at the given node
fn collect_node_values(&mut self, node: &Node) -> Vec<T> {
        let mut result : Vec<T> = Vec::new();
        let mut leaf_ptr = node.leaf;
        while !leaf_ptr.is_null() {
            let v: &T = self.fileset.read_fixed(leaf_ptr);
            let leaf: Leaf<T> = Leaf::new(*v);
            result.push(leaf.value);
            leaf_ptr = leaf.next;
        }
        result
    }
fn collect_node_values ( & mut self , node : & Node ) -> Vec < T > { let mut result : Vec < T > = Vec :: new ( ) ; let mut leaf_ptr = node . leaf ; while ! leaf_ptr . is_null ( ) { let v : & T = self . fileset . read_fixed ( leaf_ptr ) ; let leaf : Leaf < T > = Leaf :: new ( * v ) ; result . push ( leaf . value ) ; leaf_ptr = leaf . next ; } result }
Collects all the values stored at the given node
Collects all the values stored at the given node
&mut self
node
&Node
&mut self
node
&Node