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