[]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>>
[src]

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

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

Required features: "java-lang-String"

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

toString

Required features: "java-lang-String"

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

toHexString

Required features: "java-lang-String"

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

valueOf

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

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

valueOf

Required features: "java-lang-Float"

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

parseFloat

Required features: "java-lang-String"

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

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

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

pub fn is_na_n<'env>(&'env self) -> Result<bool>[src]

pub fn is_infinite<'env>(&'env self) -> Result<bool>[src]

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

toString

Required features: "java-lang-String"

pub fn byte_value<'env>(&'env self) -> Result<i8>[src]

pub fn short_value<'env>(&'env self) -> Result<i16>[src]

pub fn int_value<'env>(&'env self) -> Result<i32>[src]

pub fn long_value<'env>(&'env self) -> Result<i64>[src]

pub fn float_value<'env>(&'env self) -> Result<f32>[src]

pub fn double_value<'env>(&'env self) -> Result<f64>[src]

pub fn hash_code<'env>(&'env self) -> Result<i32>[src]

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

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

equals

Required features: "java-lang-Object"

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

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

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

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

compareTo

Required features: "java-lang-Float"

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

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

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

pub fn min<'env>(__jni_env: &'env Env, arg0: f32, arg1: f32) -> Result<f32>[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 NA_N: 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

Methods from Deref<Target = Number>

pub fn int_value<'env>(&'env self) -> Result<i32>[src]

pub fn long_value<'env>(&'env self) -> Result<i64>[src]

pub fn float_value<'env>(&'env self) -> Result<f32>[src]

pub fn double_value<'env>(&'env self) -> Result<f64>[src]

pub fn byte_value<'env>(&'env self) -> Result<i8>[src]

pub fn short_value<'env>(&'env self) -> Result<i16>[src]

Trait Implementations

impl AsRef<Comparable> for Float

impl Deref for Float

type Target = Number

The resulting type after dereferencing.

impl AsValidJObjectAndEnv for Float

impl AsJValue for Float

Auto Trait Implementations

impl !Sync for Float

impl Unpin for Float

impl !Send for Float

impl UnwindSafe for Float

impl RefUnwindSafe for Float

Blanket Implementations

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

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

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

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

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