Trait FromHibitTree

Source
pub trait FromHibitTree<From>: HibitTree
where From: RegularHibitTree<LevelMask = Self::LevelMask, LevelCount = Self::LevelCount> + RegularHibitTree,
{ // Required methods fn from_tree(from: From) -> Self; fn from_filtered_tree<F>(from: From, f: F) -> Self where for<'a, 'b> F: UnaryFunction<&'a HibitTreeData<'b, From>, Output = bool>; }
Expand description

Construct a HibitTree collection from any HibitTree.

Required Methods§

Source

fn from_tree(from: From) -> Self

Source

fn from_filtered_tree<F>(from: From, f: F) -> Self
where for<'a, 'b> F: UnaryFunction<&'a HibitTreeData<'b, From>, Output = bool>,

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.

Implementors§

Source§

impl<T, Conf, R, Other> FromHibitTree<Other> for Tree<T, Conf, R>
where Other: RegularHibitTree<LevelMask = Conf::Mask, LevelCount = Conf::LevelCount>, Conf: Config, R: DefaultRequirement, MakeDefaultFor<T, R>: MakeDefault<T>,