Dependency

Representing a dependency, which is basically a version string and a compare methode, e.g. '>=1.0.0 <2.0.0' (i.e. a space separates the two version numbers)

Constructors

this
this(string ves)
Undocumented in source.
this
this(Version ver)
Undocumented in source.
this
this(Path path)
Undocumented in source.

Members

Aliases

ANY
alias ANY = any
Undocumented in source.
INVALID
alias INVALID = invalid
Undocumented in source.

Functions

mapToPath
Dependency mapToPath(Path path)
Undocumented in source. Be warned that the author may not have intended to support it.
matches
bool matches(const(Version) v)
Undocumented in source. Be warned that the author may not have intended to support it.
matches
bool matches(const(Version) v)
Undocumented in source. Be warned that the author may not have intended to support it.
matches
bool matches(string vers)
Undocumented in source. Be warned that the author may not have intended to support it.
merge
Dependency merge(const(Dependency) o)

Merges to versions

opCmp
int opCmp(Dependency o)
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(Dependency o)
Undocumented in source. Be warned that the author may not have intended to support it.
toHash
hash_t toHash()
Undocumented in source. Be warned that the author may not have intended to support it.
toJson
Json toJson()
Undocumented in source. Be warned that the author may not have intended to support it.
toString
string toString()
Undocumented in source. Be warned that the author may not have intended to support it.
valid
bool valid()
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

any
any [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
invalid
invalid [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
isExactVersion
bool isExactVersion [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
optional
bool optional [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
optional
bool optional [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
path
Path path [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
path
Path path [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
versionString
string versionString [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
version_
Version version_ [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

fromJson
Dependency fromJson(Json verspec)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta