Autoimplement some base traits for enums
This commit is contained in:
parent
58be1f0023
commit
3ce0bffc1c
@ -1,5 +1,6 @@
|
||||
use crate::{NodeRef, NodeRefContainer};
|
||||
|
||||
#[derive(Clone, Copy, PartialEq, Eq)]
|
||||
pub enum BinaryTreeDirection {
|
||||
LEFT,
|
||||
RIGHT,
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
use crate::NodeRefContainer;
|
||||
|
||||
#[derive(Clone, Copy, PartialEq, Eq)]
|
||||
pub enum DirectedBinaryTreeDirection {
|
||||
FORWARD,
|
||||
OPPOSITE,
|
||||
@ -33,4 +34,4 @@ pub unsafe trait DirectedBinaryTreeChildrenSetterContext: NodeRefContainer {
|
||||
|
||||
pub trait DirectedBinaryTreeDirectionDispatcherClojure: NodeRefContainer {
|
||||
fn determineDirection(&self, node: Self::NodeRef) -> Option<DirectedBinaryTreeDirection>;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user