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 PartialOrd for Version
impl PartialOrd for Version
impl 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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.