pub fn live_children_in_collection(
        &self,
        collection: &str,
    ) -> Vec<(PartialMoniker, Arc<ComponentInstance>)> {
        self.live_children()
            .filter(move |(m, _)| match m.collection() {
                Some(name) if name == collection => true,
                _ => false,
            })
            .map(|(m, c)| (m.clone(), Arc::clone(c)))
            .collect()
    }
/// Returns a vector of the live children in `collection`.
Returns a vector of the live children in `collection`.
Returns a vector of the live children in ` collection ` .
pub fn live_children_in_collection(
        &self,
        collection: &str,
    ) -> Vec<(PartialMoniker, Arc<ComponentInstance>)> {
        self.live_children()
            .filter(move |(m, _)| match m.collection() {
                Some(name) if name == collection => true,
                _ => false,
            })
            .map(|(m, c)| (m.clone(), Arc::clone(c)))
            .collect()
    }
pub fn live_children_in_collection ( & self , collection : & str , ) -> Vec < ( PartialMoniker , Arc < ComponentInstance > ) > { self . live_children ( ) . filter ( move | ( m , _ ) | match m . collection ( ) { Some ( name ) if name == collection => true , _ => false , } ) . map ( | ( m , c ) | ( m . clone ( ) , Arc :: clone ( c ) ) ) . collect ( ) }
Returns a vector of the live children in `collection`.
Returns a vector of the live children in ` collection ` .
&self
collection
&str
&self
collection
&str