Core Library0.xAPI Reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

struct libtmux-swift latest

TmuxVersion

A tmux release, ordered the way tmux numbers them.

Source and package
Qualified name
TmuxVersion
Package
libtmux-swift
Source
Sources/LibTmux/TmuxVersion.swift
struct TmuxVersion : struct TmuxVersion

Description#

The trailing letter is part of the version, not decoration: tmux 3.7 shipped a break-pane crash that 3.7a reverted, so code that has to know which one it is talking to needs 3.7 < 3.7a to be true. Comparing on the numbers alone would make those two equal and the question unanswerable.

Members8#

  • <(_:_:) function Returns a Boolean value indicating whether the value of the first argument is less than that of the second argument.
  • build: let build: String? property What tmux was built from when it is not a release: master for a git build, openbsd for the one in OpenBSD's base system. Absent otherwise.
  • description: var description: String property A textual representation of this instance.
  • init(major:minor:pointRelease:build:) method
  • init(parsing:) method Reads what tmux -V prints.
  • major: let major: Int property The major version — 3 in 3.7a.
  • minor: let minor: Int property The minor version — 7 in 3.7a.
  • pointRelease: let pointRelease: String property The point release's letter — a in 3.7a — empty when there is none. Ordered as tmux issues them, so no letter precedes a precedes b.

Inherited members9 members#

Reached through Equatable.!=(_:_:), Comparable....(_:_:), Comparable....(_:), Comparable...<(_:_:), Comparable...<(_:), Comparable.<=(_:_:), Comparable.>(_:_:), Comparable.>=(_:_:), Decodable.init(from:).

  • !=(_:_:) function inherited Returns a Boolean value indicating whether two values are not equal.
  • ...(_:_:) function inherited Returns a closed range that contains both of its bounds.
  • ...(_:) function inherited Returns a partial range up to, and including, its upper bound.
  • ..<(_:_:) function inherited Returns a half-open range that contains its lower bound but not its upper bound.
  • ..<(_:) function inherited Returns a partial range up to, but not including, its upper bound.
  • <=(_:_:) function inherited Returns a Boolean value indicating whether the value of the first argument is less than or equal to that of the second argument.
  • >(_:_:) function inherited Returns a Boolean value indicating whether the value of the first argument is greater than that of the second argument.
  • >=(_:_:) function inherited Returns a Boolean value indicating whether the value of the first argument is greater than or equal to that of the second argument.
  • init(from:) method inherited Creates a new instance by decoding from the given decoder.
Esc

Type to search.

Reference previewOpen reference