pub fn matches(&self, targets: &TargetSet) -> bool {
        match *self {
            TargetSpec::Wildcard => true,
            TargetSpec::Name(ref name) => targets.0.contains(name),
            TargetSpec::All(ref specs) => specs.iter().all(|s| s.matches(targets)),
            TargetSpec::Any(ref specs) => specs.iter().any(|s| s.matches(targets)),
            TargetSpec::Not(ref spec) => !spec.matches(targets),
        }
    }
/// Checks whether this specification matches a set of targets.
Checks whether this specification matches a set of targets.
Checks whether this specification matches a set of targets .
pub fn matches(&self, targets: &TargetSet) -> bool {
        match *self {
            TargetSpec::Wildcard => true,
            TargetSpec::Name(ref name) => targets.0.contains(name),
            TargetSpec::All(ref specs) => specs.iter().all(|s| s.matches(targets)),
            TargetSpec::Any(ref specs) => specs.iter().any(|s| s.matches(targets)),
            TargetSpec::Not(ref spec) => !spec.matches(targets),
        }
    }
pub fn matches ( & self , targets : & TargetSet ) -> bool { match * self { TargetSpec :: Wildcard => true , TargetSpec :: Name ( ref name ) => targets . 0 . contains ( name ) , TargetSpec :: All ( ref specs ) => specs . iter ( ) . all ( | s | s . matches ( targets ) ) , TargetSpec :: Any ( ref specs ) => specs . iter ( ) . any ( | s | s . matches ( targets ) ) , TargetSpec :: Not ( ref spec ) => ! spec . matches ( targets ) , } }
Checks whether this specification matches a set of targets.
Checks whether this specification matches a set of targets .
&self
targets
&TargetSet
&self
targets
&TargetSet