Instance Methodswift-package-manager 6.0.1PackageGraph
satisfies(_:)
ResolvedModule.swift:69func satisfies(_ environment: BuildEnvironment) -> Bool
func satisfies(_ environment: BuildEnvironment) -> Bool
s12PackageGraph14ResolvedModuleV10DependencyO9satisfiesySb0A5Model16BuildEnvironmentVF
What are these?7YZLC
import PackageGraph
enum Dependency
Represents dependency of a resolved module.
struct ResolvedModule
Represents a fully resolved module. All the dependencies for this module are also stored as resolved.
struct BuildEnvironment
A build environment with which to evaluate conditions.
@frozen struct Bool
A value type whose instances are either true
or false
.
var conditions: [PackageCondition] { get }
var dependencies: [ResolvedModule.Dependency] { get }
Returns the direct dependencies of the underlying dependency, across the package graph.
var description: String { get }
var id: ID { get }
var module: ResolvedModule? { get }
var packageDependencies: [ResolvedModule.Dependency] { get }
Returns the direct dependencies of the underlying dependency, limited to the module’s package.
var product: ResolvedProduct? { get }
static func == (lhs: ResolvedModule.Dependency, rhs: ResolvedModule.Dependency) -> Bool
func hash(into hasher: inout Hasher)
struct ID