/// Returns the names of the capabilities in this clause.
/// If `protocol()` returns `Some(OneOrMany::Many(vec!["a", "b"]))`, this returns!["a", "b"].
Returns the names of the capabilities in this clause.
Returns the names of the capabilities in this clause .
fn names(&self) -> Vec<Name> {
        let res = vec![
            self.service(),
            self.protocol(),
            self.directory(),
            self.storage(),
            self.runner(),
            self.resolver(),
            self.event(),
            self.event_stream().map(|n| OneOrMany::One(n)),
        ];
        res.into_iter()
            .map(|o| o.map(|o| o.into_iter().collect::<Vec<Name>>()).unwrap_or(vec![]))
            .flatten()
            .collect()
    }
fn names ( & self ) -> Vec < Name > { let res = vec ! [ self service ( ) self protocol ( ) self directory ( ) self storage ( ) self runner ( ) self resolver ( ) self event ( ) self event_stream ( ) map ( n OneOrMany One ( n ) ) ] ; res . into_iter ( ) . map ( | o | o . map ( | o | o . into_iter ( ) . collect :: < Vec < Name > > ( ) ) . unwrap_or ( vec ! [ ] ) ) . flatten ( ) . collect ( ) }
Returns the names of the capabilities in this clause.
Returns the names of the capabilities in this clause .
&self