pub struct Version {
pub major: u16,
pub minor: u16,
}
Expand description
The version numbers of a class file.
Fields§
§major: u16
§minor: u16
Implementations§
source§impl Version
impl Version
pub const V1_0_2: Version = _
pub const V1_1: Version = _
pub const V1_2: Version = _
pub const V1_3: Version = _
pub const V1_4: Version = _
pub const V5_0: Version = _
pub const V6: Version = _
pub const V7: Version = _
pub const V8: Version = _
pub const V9: Version = _
pub const V10: Version = _
pub const V11: Version = _
pub const V12: Version = _
pub const V13: Version = _
pub const V14: Version = _
pub const V15: Version = _
pub const V16: Version = _
pub const V17: Version = _
pub const V18: Version = _
sourcepub const fn latest() -> Version
pub const fn latest() -> Version
The latest version which is guaranteed to work with this library. Changes of this value are not considered breaking changes.
pub fn is_preview(self) -> bool
Trait Implementations§
source§impl Ord for Version
impl Ord for Version
source§impl PartialEq for Version
impl PartialEq for Version
source§impl PartialOrd for Version
impl PartialOrd for Version
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Version
impl Eq for Version
impl StructuralPartialEq for Version
Auto Trait Implementations§
impl Freeze for Version
impl RefUnwindSafe for Version
impl Send for Version
impl Sync for Version
impl Unpin for Version
impl UnwindSafe for Version
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.