Skip to main content

JvmVersion

Struct JvmVersion 

Source
pub struct JvmVersion {
    pub major: u16,
    pub minor: u16,
}
Expand description

JVM version information

Fields§

§major: u16

Major version number

§minor: u16

Minor version number

Implementations§

Source§

impl JvmVersion

Source

pub fn new(major: u16, minor: u16) -> Self

Creates a new JVM version

Source

pub fn java_1_1() -> Self

Java 1.1 (version 45.3)

Source

pub fn java_1_2() -> Self

Java 1.2 (version 46.0)

Source

pub fn java_1_3() -> Self

Java 1.3 (version 47.0)

Source

pub fn java_1_4() -> Self

Java 1.4 (version 48.0)

Source

pub fn java_5() -> Self

Java 5 (version 49.0)

Source

pub fn java_6() -> Self

Java 6 (version 50.0)

Source

pub fn java_7() -> Self

Java 7 (version 51.0)

Source

pub fn java_8() -> Self

Java 8 (version 52.0)

Source

pub fn java_9() -> Self

Java 9 (version 53.0)

Source

pub fn java_10() -> Self

Java 10 (version 54.0)

Source

pub fn java_11() -> Self

Java 11 (version 55.0)

Source

pub fn java_12() -> Self

Java 12 (version 56.0)

Source

pub fn java_13() -> Self

Java 13 (version 57.0)

Source

pub fn java_14() -> Self

Java 14 (version 58.0)

Source

pub fn java_15() -> Self

Java 15 (version 59.0)

Source

pub fn java_16() -> Self

Java 16 (version 60.0)

Source

pub fn java_17() -> Self

Java 17 (version 61.0)

Source

pub fn java_18() -> Self

Java 18 (version 62.0)

Source

pub fn java_19() -> Self

Java 19 (version 63.0)

Source

pub fn java_20() -> Self

Java 20 (version 64.0)

Source

pub fn java_21() -> Self

Java 21 (version 65.0)

Source

pub fn java_22() -> Self

Java 22 (version 66.0)

Trait Implementations§

Source§

impl Clone for JvmVersion

Source§

fn clone(&self) -> JvmVersion

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for JvmVersion

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for JvmVersion

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Hash for JvmVersion

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for JvmVersion

Source§

fn eq(&self, other: &JvmVersion) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for JvmVersion

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Copy for JvmVersion

Source§

impl Eq for JvmVersion

Source§

impl StructuralPartialEq for JvmVersion

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,