pub struct ClapVersion {
pub major: u32,
pub minor: u32,
pub revision: u32,
}Expand description
A CLAP version identifier.
Fields§
§major: u32The major version number.
A change in this number indicates an incompatible ABI or API change.
Version 0.x.y is the development stage, and ABI or API stability is not guaranteed.
minor: u32The minor version number.
A change in this number indicates a compatible API extension.
revision: u32The revision version number.
A change in this number indicates a bug fix or other compatible change.
Implementations§
Source§impl ClapVersion
impl ClapVersion
Sourcepub const CURRENT: ClapVersion
pub const CURRENT: ClapVersion
The version of the CLAP API that is implemented by this Clack implementation.
Sourcepub const fn from_raw(raw: clap_version) -> ClapVersion
pub const fn from_raw(raw: clap_version) -> ClapVersion
Creates a ClapVersion from its raw, C-FFI compatible representation.
Sourcepub const fn to_raw(self) -> clap_version
pub const fn to_raw(self) -> clap_version
Returns this ClapVersion as its raw, C-FFI compatible representation.
Sourcepub const fn is_compatible(&self) -> bool
pub const fn is_compatible(&self) -> bool
Returns whether this ClapVersion is compatible with the current version of this clack
library.
This currently returns true if this version’s major field is 1, and false
otherwise.
Trait Implementations§
Source§impl Clone for ClapVersion
impl Clone for ClapVersion
Source§fn clone(&self) -> ClapVersion
fn clone(&self) -> ClapVersion
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more