Function taxonomy::prune_away

source ·
pub fn prune_away<'t, T: 't + Clone + Copy + Debug + Display + Eq + Hash + PartialEq>(
tax: &'t impl Taxonomy<'t, T>,
tax_ids: &[T]
) -> TaxonomyResult<GeneralTaxonomy>
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_index if you have those.