Skip to main content

build_sorted

Function build_sorted 

Source
pub fn build_sorted<N, F>(
    nodes: &mut N,
    count: usize,
    make: &mut F,
) -> Result<Option<N::Node>, N::Error>
where N: AvlNodes, F: FnMut(&mut N, Placement) -> Result<N::Node, N::Error>,
Expand description

A balanced tree of count sorted items, each node made by make from where its item stands: music21’s populateFromSortedList. Answers the root.