Version
[Source]
class ref Version is
ComparableMixin[Version ref] ref,
Hashable ref,
Stringable box
Implements
Constructors
create
[Source]
new ref create(
major': U64 val,
minor': U64 val = 0,
patch': U64 val = 0,
pr_fields': Array[(String val | U64 val)] ref = qualify,
build_fields': Array[String val] ref = qualify)
: Version ref^
Parameters
Returns
Public fields
var major: U64 val
[Source]
var minor: U64 val
[Source]
var patch: U64 val
[Source]
let pr_fields: Array[(String val | U64 val)] ref
[Source]
let build_fields: Array[String val] ref
[Source]
[Source]
Public Functions
compare
[Source]
fun box compare(
that: Version box)
: (Less val | Equal val | Greater val)
Parameters
Returns
hash
[Source]
fun box hash()
: USize val
Returns
is_valid
[Source]
fun box is_valid()
: Bool val
Returns
string
[Source]
fun box string()
: String iso^
Returns
major_minor_patch_string
[Source]
fun box major_minor_patch_string()
: String val
Returns
pre_release_string
[Source]
fun box pre_release_string()
: String val
Returns
build_string
[Source]
fun box build_string()
: String val
Returns
lt
[Source]
fun box lt(
that: Version box)
: Bool val
Parameters
Returns
le
[Source]
fun box le(
that: Version box)
: Bool val
Parameters
Returns
gt
[Source]
fun box gt(
that: Version box)
: Bool val
Parameters
Returns
ge
[Source]
fun box ge(
that: Version box)
: Bool val
Parameters
Returns
eq
[Source]
fun box eq(
that: Version box)
: Bool val
Parameters
Returns
ne
[Source]
fun box ne(
that: Version box)
: Bool val
Parameters
Returns