Trait zenoh_keyexpr::keyexpr_tree::traits::IKeyExprTreeExt
source · pub trait IKeyExprTreeExt<'a, Weight>: IKeyExprTree<'a, Weight> {
// Provided methods
fn weight_at(&'a self, key: &keyexpr) -> Option<&'a Weight> { ... }
fn intersecting_keys(
&'a self,
key: &'a keyexpr
) -> FilterMap<Self::Intersection, fn(_: Self::IntersectionItem) -> Option<OwnedKeyExpr>> ⓘ
where Self::IntersectionItem: AsNode<Self::Node>,
Self::Node: IKeyExprTreeNode<Weight> { ... }
fn included_keys(
&'a self,
key: &'a keyexpr
) -> FilterMap<Self::Inclusion, fn(_: Self::InclusionItem) -> Option<OwnedKeyExpr>> ⓘ
where Self::InclusionItem: AsNode<Self::Node>,
Self::Node: IKeyExprTreeNode<Weight> { ... }
fn key_value_pairs(
&'a self
) -> FilterMap<Self::TreeIter, fn(_: Self::TreeIterItem) -> Option<(OwnedKeyExpr, &'a Weight)>> ⓘ
where Self::TreeIterItem: AsNode<Box<Self::Node>> { ... }
}Expand description
Extension methods for KeTrees
Provided Methods§
sourcefn weight_at(&'a self, key: &keyexpr) -> Option<&'a Weight>
fn weight_at(&'a self, key: &keyexpr) -> Option<&'a Weight>
Returns a reference to the weight of the node at key
sourcefn intersecting_keys(
&'a self,
key: &'a keyexpr
) -> FilterMap<Self::Intersection, fn(_: Self::IntersectionItem) -> Option<OwnedKeyExpr>> ⓘ
fn intersecting_keys( &'a self, key: &'a keyexpr ) -> FilterMap<Self::Intersection, fn(_: Self::IntersectionItem) -> Option<OwnedKeyExpr>> ⓘ
Returns an iterator over the KEs contained in the tree that intersect with key
sourcefn included_keys(
&'a self,
key: &'a keyexpr
) -> FilterMap<Self::Inclusion, fn(_: Self::InclusionItem) -> Option<OwnedKeyExpr>> ⓘ
fn included_keys( &'a self, key: &'a keyexpr ) -> FilterMap<Self::Inclusion, fn(_: Self::InclusionItem) -> Option<OwnedKeyExpr>> ⓘ
Returns an iterator over the KEs contained in the tree that are included by key
sourcefn key_value_pairs(
&'a self
) -> FilterMap<Self::TreeIter, fn(_: Self::TreeIterItem) -> Option<(OwnedKeyExpr, &'a Weight)>> ⓘ
fn key_value_pairs( &'a self ) -> FilterMap<Self::TreeIter, fn(_: Self::TreeIterItem) -> Option<(OwnedKeyExpr, &'a Weight)>> ⓘ
Iterates through weighted nodes, yielding their KE and Weight.