Skip to main content

BuildMetadata

Optional build metadata identifier. This comes after + in a SemVer version, as in 0.8.1+zstd.1.5.0.

Spec: https://docs.rs/semver/1.0.20/semver/struct.BuildMetadata.html

Properties

EMPTY

This item is read only and cannot be modified. Read OnlyStatic
BuildMetadata.EMPTY: BuildMetadata

Usage:

local ver = Version.new(1, 0, 0, Prerelease.EMPTY, BuildMetadata.EMPTY)

Functions

new

BuildMetadata.new(inputstring) → BuildMetadata

is

BuildMetadata.is(objany) → boolean

Returns true if obj is BuildMetadata.

is_empty

BuildMetadata:is_empty() → boolean

__tostring

BuildMetadata:__tostring() → string

This metamethod transforms self into a string.

__len

BuildMetadata:__len() → number

This metamethod returns the length of self and is used by the # length operator.

__eq

BuildMetadata:__eq(otherBuildMetadata) → boolean

This metamethod tests for self and other values to be equal and is used by the operators == and ~=.

__lt

BuildMetadata:__lt(otherBuildMetadata) → boolean

This metamethod tests less than (for self and other) and is used by the operators < and >.

__le

BuildMetadata:__le(otherBuildMetadata) → boolean

This metamethod tests less than or equal to (for self and other) and is used by the operators <= and >=.

Show raw api
{
    "functions": [
        {
            "name": "new",
            "desc": "",
            "params": [
                {
                    "name": "input",
                    "desc": "",
                    "lua_type": "string"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "BuildMetadata\n"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 34,
                "path": "lib/CargoSemver/src/BuildMetadata.luau"
            }
        },
        {
            "name": "_new_unchecked",
            "desc": "",
            "params": [
                {
                    "name": "identifier",
                    "desc": "",
                    "lua_type": "string"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "BuildMetadata\n"
                }
            ],
            "function_type": "static",
            "private": true,
            "source": {
                "line": 46,
                "path": "lib/CargoSemver/src/BuildMetadata.luau"
            }
        },
        {
            "name": "is",
            "desc": "Returns `true` if `obj` is [BuildMetadata].",
            "params": [
                {
                    "name": "obj",
                    "desc": "",
                    "lua_type": "any"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "boolean\n"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 55,
                "path": "lib/CargoSemver/src/BuildMetadata.luau"
            }
        },
        {
            "name": "is_empty",
            "desc": "",
            "params": [],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "boolean"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 64,
                "path": "lib/CargoSemver/src/BuildMetadata.luau"
            }
        },
        {
            "name": "__tostring",
            "desc": "This metamethod transforms `self` into a string.",
            "params": [],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "string"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 74,
                "path": "lib/CargoSemver/src/BuildMetadata.luau"
            }
        },
        {
            "name": "__len",
            "desc": "This metamethod returns the length of `self` and is used by the `#` length operator.",
            "params": [],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "number"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 84,
                "path": "lib/CargoSemver/src/BuildMetadata.luau"
            }
        },
        {
            "name": "__eq",
            "desc": "This metamethod tests for `self` and `other` values to be equal and is used by the operators `==` and `~=`.",
            "params": [
                {
                    "name": "other",
                    "desc": "",
                    "lua_type": "BuildMetadata"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "boolean"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 95,
                "path": "lib/CargoSemver/src/BuildMetadata.luau"
            }
        },
        {
            "name": "__lt",
            "desc": "This metamethod tests less than (for `self` and `other`) and is used by the operators `<` and `>`.",
            "params": [
                {
                    "name": "other",
                    "desc": "",
                    "lua_type": "BuildMetadata"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "boolean"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 128,
                "path": "lib/CargoSemver/src/BuildMetadata.luau"
            }
        },
        {
            "name": "__le",
            "desc": "This metamethod tests less than or equal to (for `self` and `other`) and is used by the operators `<=` and `>=`.",
            "params": [
                {
                    "name": "other",
                    "desc": "",
                    "lua_type": "BuildMetadata"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "boolean"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 180,
                "path": "lib/CargoSemver/src/BuildMetadata.luau"
            }
        }
    ],
    "properties": [
        {
            "name": "EMPTY",
            "desc": "**Usage:**\n```lua\nlocal ver = Version.new(1, 0, 0, Prerelease.EMPTY, BuildMetadata.EMPTY)\n```",
            "lua_type": "BuildMetadata",
            "tags": [
                "Static"
            ],
            "readonly": true,
            "source": {
                "line": 194,
                "path": "lib/CargoSemver/src/BuildMetadata.luau"
            }
        }
    ],
    "types": [],
    "name": "BuildMetadata",
    "desc": "Optional build metadata identifier. This comes after `+` in a SemVer version, as in `0.8.1+zstd.1.5.0`.\n\nSpec: https://docs.rs/semver/1.0.20/semver/struct.BuildMetadata.html",
    "source": {
        "line": 28,
        "path": "lib/CargoSemver/src/BuildMetadata.luau"
    }
}