pub trait AvltrieeSearch<T, I, A>: AsRef<Avltriee<T, I, A>>where
A: AvltrieeAllocator<T>,
I: ?
Sized,
{
// Required methods
fn cmp(&self, left: &T, right: &I) -> Ordering;
fn convert<'a, 'b>(&'a self, value: &'b T) -> &'a I
where 'b: 'a;
// Provided methods
fn search(&self, value: &I) -> Found
where Self: Sized { ... }
fn row(&self, value: &I) -> Option<NonZero<u32>>
where Self: Sized { ... }
fn value<'a>(&'a self, row: NonZero<u32>) -> Option<&'a I>
where A: 'a,
T: 'a { ... }
}
Finds the edge of a node from the specified value.
Returns the value of the specified row. Returns None if the row does not exist.