BinaryTreesMutable
This commit is contained in:
parent
6b1fb24fd8
commit
ea161728a6
@ -20,14 +20,14 @@ pub trait BinaryTrees<'a>: 'a {
|
||||
|
||||
type T: Monad<'a>;
|
||||
|
||||
fn split(node: Self::Node) -> Wrapped<'a, Self, Split<'a, Self>>;
|
||||
fn split(node: Self::Node) -> Split<'a, Self>;
|
||||
fn to_tree(node: Self::Node) -> TreeRc<'a, Self>;
|
||||
fn to_tree_construct(&self, node: Self::Node) -> TreeRc<'a, Self> {
|
||||
Self::to_tree(node)
|
||||
}
|
||||
fn resolve(reference: Self::Reference) -> Wrapped<'a, Self, NodeRc<'a, Self>>;
|
||||
fn equal(rhs: Self::Reference, lhs: Self::Reference) -> bool;
|
||||
fn refer(tree: Self::Tree) -> Option<ReferenceRc<'a, Self>>;
|
||||
}
|
||||
|
||||
pub trait BinaryTreesMutable<'a>: BinaryTrees<'a> {
|
||||
fn join_key(
|
||||
tl: Self::Tree,
|
||||
key: KeyRc<'a, Self>,
|
||||
|
Loading…
Reference in New Issue
Block a user