Function taxonomy::edit::prune_away[][src]

pub fn prune_away<'t, D: 't, T: 't>(
    tax: &'t impl Taxonomy<'t, T, D>,
    tax_ids: &[T]
) -> Result<GeneralTaxonomy> where
    D: Clone + Debug + PartialOrd + PartialEq + Sum + Into<f32>,
    T: Clone + Copy + Debug + Display + Eq + Hash + PartialEq
Expand description

Return a tree with these tax_ids and their children removed.

Note this uses internal indices so you’ll have to convert “string” keys using to_internal_id if you have those.