Skip to main content

SearchByExtra

Trait SearchByExtra 

Source
pub trait SearchByExtra<A> {
    // Required method
    fn on_edge(
        &mut self,
        left_extra: &A,
        right_extra: &A,
    ) -> ControlFlow<(), Branch>;

    // Provided method
    fn on_leaf(&mut self, leaf_extra: &A) -> bool { ... }
}
Expand description

AugDict search control flow.

Required Methods§

Source

fn on_edge( &mut self, left_extra: &A, right_extra: &A, ) -> ControlFlow<(), Branch>

Returns which branch satisfies the condition.

Provided Methods§

Source

fn on_leaf(&mut self, leaf_extra: &A) -> bool

Returns if the leaf extra satisfies the condition.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl<A, T: SearchByExtra<A>> SearchByExtra<A> for &mut T

Source§

fn on_leaf(&mut self, leaf_extra: &A) -> bool

Source§

fn on_edge( &mut self, left_extra: &A, right_extra: &A, ) -> ControlFlow<(), Branch>

Source§

impl<A: Ord> SearchByExtra<A> for Ordering

Source§

fn on_edge( &mut self, left_extra: &A, right_extra: &A, ) -> ControlFlow<(), Branch>

Implementors§