Enum JavaClass

Source
pub enum JavaClass<'a> {
    Void,
    String,
    Boolean,
    Byte,
    Character,
    Short,
    Integer,
    Long,
    Float,
    Double,
    List,
    Of(&'a str),
}
Expand description

Represents default, known Classes in Java. Can be used as class argument in Jvm#java_list, etc.

Variants§

§

Void

§

String

§

Boolean

§

Byte

§

Character

§

Short

§

Integer

§

Long

§

Float

§

Double

§

List

§

Of(&'a str)

Implementations§

Source§

impl<'a> JavaClass<'a>

Source

pub fn get_class_str(&self) -> &'a str

Trait Implementations§

Source§

impl<'a> From<&'a str> for JavaClass<'a>

Source§

fn from(java_class: &'a str) -> JavaClass<'a>

Converts to this type from the input type.
Source§

impl<'a> From<JavaClass<'a>> for &'a str

Source§

fn from(java_class: JavaClass<'a>) -> &'a str

Converts to this type from the input type.

Auto Trait Implementations§

§

impl<'a> Freeze for JavaClass<'a>

§

impl<'a> RefUnwindSafe for JavaClass<'a>

§

impl<'a> Send for JavaClass<'a>

§

impl<'a> Sync for JavaClass<'a>

§

impl<'a> Unpin for JavaClass<'a>

§

impl<'a> UnwindSafe for JavaClass<'a>

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> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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, 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.