#[repr(C)]pub struct ApiVersion { /* private fields */ }
Expand description
A semver-compatible version.
Implementations§
Source§impl ApiVersion
impl ApiVersion
Sourcepub fn version_major(&self) -> u16
pub fn version_major(&self) -> u16
Returns the major version number.
Sourcepub fn version_minor(&self) -> u16
pub fn version_minor(&self) -> u16
Returns the minor version number.
Sourcepub fn version_patch(&self) -> u16
pub fn version_patch(&self) -> u16
Returns the patch version number.
Sourcepub fn pre_release(&self) -> bool
pub fn pre_release(&self) -> bool
Returns whether this version is a pre-release, e.g., an alpha version.
Trait Implementations§
Source§impl Clone for ApiVersion
impl Clone for ApiVersion
Source§fn clone(&self) -> ApiVersion
fn clone(&self) -> ApiVersion
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ApiVersion
impl Debug for ApiVersion
Source§impl Default for ApiVersion
impl Default for ApiVersion
Source§impl PartialEq for ApiVersion
impl PartialEq for ApiVersion
impl Copy for ApiVersion
impl Eq for ApiVersion
impl StructuralPartialEq for ApiVersion
Auto Trait Implementations§
impl Freeze for ApiVersion
impl RefUnwindSafe for ApiVersion
impl Send for ApiVersion
impl Sync for ApiVersion
impl Unpin for ApiVersion
impl UnwindSafe for ApiVersion
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more