Skip to main content

BinaryTree

Trait BinaryTree 

Source
pub trait BinaryTree {
    type Node: Node;

    // Required method
    fn root(&self) -> Option<&Self::Node>;
}

Required Associated Types§

Required Methods§

Source

fn root(&self) -> Option<&Self::Node>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§