Trait TreeIterTarget

Source
pub trait TreeIterTarget<'a, N, B> {
    type Target;

    // Required method
    fn target(tree: &'a Tree<N, B>, idx: usize) -> Self::Target;
}

Required Associated Types§

Required Methods§

Source

fn target(tree: &'a Tree<N, B>, idx: usize) -> Self::Target

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<'a, N, B> TreeIterTarget<'a, N, B> for &'a N

Source§

type Target = &'a N

Source§

fn target(tree: &'a Tree<N, B>, idx: usize) -> Self::Target

Source§

impl<'a, N, B> TreeIterTarget<'a, N, B> for ()

Source§

type Target = ()

Source§

fn target(_: &'a Tree<N, B>, _: usize) -> Self::Target

Source§

impl<'a, N, B> TreeIterTarget<'a, N, B> for usize

Source§

type Target = usize

Source§

fn target(_: &'a Tree<N, B>, idx: usize) -> Self::Target

Implementors§