Skip to main content

Depth

Trait Depth 

Source
pub trait Depth {
    // Required methods
    fn is_zero(&self) -> bool;
    fn decrease(&mut self);
}
Expand description

Tree node depth.

Required Methods§

Source

fn is_zero(&self) -> bool

Whether we are 0.

Source

fn decrease(&mut self)

Decrease by 1 if we are greater than 0.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl Depth for Option<usize>

Source§

fn is_zero(&self) -> bool

Source§

fn decrease(&mut self)

Implementors§