Skip to main content

JavaPrimitive

Trait JavaPrimitive 

Source
pub trait JavaPrimitive: Sized {
    type P: Sized + TypeArray;

    // Required method
    fn as_java(&self) -> Self::P;
}

Required Associated Types§

Required Methods§

Source

fn as_java(&self) -> Self::P

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl JavaPrimitive for bool

Source§

type P = bool

Source§

fn as_java(&self) -> Self::P

Source§

impl JavaPrimitive for f32

Source§

type P = f32

Source§

fn as_java(&self) -> Self::P

Source§

impl JavaPrimitive for f64

Source§

type P = f64

Source§

fn as_java(&self) -> Self::P

Source§

impl JavaPrimitive for i8

Source§

type P = i8

Source§

fn as_java(&self) -> Self::P

Source§

impl JavaPrimitive for i16

Source§

type P = i16

Source§

fn as_java(&self) -> Self::P

Source§

impl JavaPrimitive for i32

Source§

type P = i32

Source§

fn as_java(&self) -> Self::P

Source§

impl JavaPrimitive for i64

Source§

type P = i64

Source§

fn as_java(&self) -> Self::P

Source§

impl JavaPrimitive for u16

Source§

type P = u16

Source§

fn as_java(&self) -> Self::P

Implementors§