[]Struct jni_android_sys::java::lang::Float

#[repr(transparent)]
pub struct Float(_);

public final class Float

Required feature: "java-lang-Float"

Methods

impl Float

pub fn new_float<'env>(
    __jni_env: &'env Env,
    arg0: f32
) -> Result<Local<'env, Float>, Local<'env, Throwable>>
[src]

pub fn new_double<'env>(
    __jni_env: &'env Env,
    arg0: f64
) -> Result<Local<'env, Float>, Local<'env, Throwable>>
[src]

pub fn new_String<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env String>>
) -> Result<Local<'env, Float>, Local<'env, Throwable>>
[src]

Float

Required features: "java-lang-String"

pub fn toString_float<'env>(
    __jni_env: &'env Env,
    arg0: f32
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]

toString

Required features: "java-lang-String"

pub fn toHexString<'env>(
    __jni_env: &'env Env,
    arg0: f32
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]

toHexString

Required features: "java-lang-String"

pub fn valueOf_String<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, Float>>, Local<'env, Throwable>>
[src]

valueOf

Required features: "java-lang-Float", "java-lang-String"

pub fn valueOf_float<'env>(
    __jni_env: &'env Env,
    arg0: f32
) -> Result<Option<Local<'env, Float>>, Local<'env, Throwable>>
[src]

valueOf

Required features: "java-lang-Float"

pub fn parseFloat<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env String>>
) -> Result<f32, Local<'env, Throwable>>
[src]

parseFloat

Required features: "java-lang-String"

pub fn isNaN_float<'env>(
    __jni_env: &'env Env,
    arg0: f32
) -> Result<bool, Local<'env, Throwable>>
[src]

pub fn isInfinite_float<'env>(
    __jni_env: &'env Env,
    arg0: f32
) -> Result<bool, Local<'env, Throwable>>
[src]

pub fn isFinite<'env>(
    __jni_env: &'env Env,
    arg0: f32
) -> Result<bool, Local<'env, Throwable>>
[src]

pub fn isNaN<'env>(&'env self) -> Result<bool, Local<'env, Throwable>>[src]

pub fn isInfinite<'env>(&'env self) -> Result<bool, Local<'env, Throwable>>[src]

pub fn toString<'env>(
    &'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]

toString

Required features: "java-lang-String"

pub fn byteValue<'env>(&'env self) -> Result<i8, Local<'env, Throwable>>[src]

pub fn shortValue<'env>(&'env self) -> Result<i16, Local<'env, Throwable>>[src]

pub fn intValue<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>[src]

pub fn longValue<'env>(&'env self) -> Result<i64, Local<'env, Throwable>>[src]

pub fn floatValue<'env>(&'env self) -> Result<f32, Local<'env, Throwable>>[src]

pub fn doubleValue<'env>(&'env self) -> Result<f64, Local<'env, Throwable>>[src]

pub fn hashCode<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>[src]

pub fn hashCode_float<'env>(
    __jni_env: &'env Env,
    arg0: f32
) -> Result<i32, Local<'env, Throwable>>
[src]

pub fn equals<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Object>>
) -> Result<bool, Local<'env, Throwable>>
[src]

equals

Required features: "java-lang-Object"

pub fn floatToIntBits<'env>(
    __jni_env: &'env Env,
    arg0: f32
) -> Result<i32, Local<'env, Throwable>>
[src]

pub fn floatToRawIntBits<'env>(
    __jni_env: &'env Env,
    arg0: f32
) -> Result<i32, Local<'env, Throwable>>
[src]

pub fn intBitsToFloat<'env>(
    __jni_env: &'env Env,
    arg0: i32
) -> Result<f32, Local<'env, Throwable>>
[src]

pub fn compareTo_Float<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Float>>
) -> Result<i32, Local<'env, Throwable>>
[src]

compareTo

Required features: "java-lang-Float"

pub fn compare<'env>(
    __jni_env: &'env Env,
    arg0: f32,
    arg1: f32
) -> Result<i32, Local<'env, Throwable>>
[src]

pub fn sum<'env>(
    __jni_env: &'env Env,
    arg0: f32,
    arg1: f32
) -> Result<f32, Local<'env, Throwable>>
[src]

pub fn max<'env>(
    __jni_env: &'env Env,
    arg0: f32,
    arg1: f32
) -> Result<f32, Local<'env, Throwable>>
[src]

pub fn min<'env>(
    __jni_env: &'env Env,
    arg0: f32,
    arg1: f32
) -> Result<f32, Local<'env, Throwable>>
[src]

pub const BYTES: i32[src]

public static final BYTES

pub const MAX_EXPONENT: i32[src]

public static final MAX_EXPONENT

pub const MAX_VALUE: f32[src]

public static final MAX_VALUE

pub const MIN_EXPONENT: i32[src]

public static final MIN_EXPONENT

pub const MIN_NORMAL: f32[src]

public static final MIN_NORMAL

pub const MIN_VALUE: f32[src]

public static final MIN_VALUE

pub const NEGATIVE_INFINITY: f32[src]

public static final NEGATIVE_INFINITY

pub const NaN: f32[src]

public static final NaN

pub const POSITIVE_INFINITY: f32[src]

public static final POSITIVE_INFINITY

pub const SIZE: i32[src]

public static final SIZE

pub fn TYPE<'env>(env: &'env Env) -> Option<Local<'env, Class>>[src]

get public static final TYPE

Required feature: "java-lang-Class"

Methods from Deref<Target = Number>

pub fn intValue<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>[src]

pub fn longValue<'env>(&'env self) -> Result<i64, Local<'env, Throwable>>[src]

pub fn floatValue<'env>(&'env self) -> Result<f32, Local<'env, Throwable>>[src]

pub fn doubleValue<'env>(&'env self) -> Result<f64, Local<'env, Throwable>>[src]

pub fn byteValue<'env>(&'env self) -> Result<i8, Local<'env, Throwable>>[src]

pub fn shortValue<'env>(&'env self) -> Result<i16, Local<'env, Throwable>>[src]

Trait Implementations

impl AsJValue for Float

impl AsRef<Comparable> for Float

impl AsValidJObjectAndEnv for Float

impl Deref for Float

type Target = Number

The resulting type after dereferencing.

impl JniType for Float

Auto Trait Implementations

impl RefUnwindSafe for Float

impl !Send for Float

impl !Sync for Float

impl Unpin for Float

impl UnwindSafe for Float

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.