[−]Struct jni_android_sys::java::math::BigInteger
public class BigInteger
Required feature: "java-math-BigInteger"
Methods
impl BigInteger
pub fn new_int_Random<'env>(
__jni_env: &'env Env,
arg0: i32,
arg1: impl Into<Option<&'env Random>>
) -> Result<Local<'env, BigInteger>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: i32,
arg1: impl Into<Option<&'env Random>>
) -> Result<Local<'env, BigInteger>, Local<'env, Throwable>>
Required features: "java-util-Random"
pub fn new_int_int_Random<'env>(
__jni_env: &'env Env,
arg0: i32,
arg1: i32,
arg2: impl Into<Option<&'env Random>>
) -> Result<Local<'env, BigInteger>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: i32,
arg1: i32,
arg2: impl Into<Option<&'env Random>>
) -> Result<Local<'env, BigInteger>, Local<'env, Throwable>>
Required features: "java-util-Random"
pub fn new_String<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env String>>
) -> Result<Local<'env, BigInteger>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env String>>
) -> Result<Local<'env, BigInteger>, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn new_String_int<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env String>>,
arg1: i32
) -> Result<Local<'env, BigInteger>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env String>>,
arg1: i32
) -> Result<Local<'env, BigInteger>, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn new_int_byte_array<'env>(
__jni_env: &'env Env,
arg0: i32,
arg1: impl Into<Option<&'env ByteArray>>
) -> Result<Local<'env, BigInteger>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: i32,
arg1: impl Into<Option<&'env ByteArray>>
) -> Result<Local<'env, BigInteger>, Local<'env, Throwable>>
pub fn new_byte_array<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env ByteArray>>
) -> Result<Local<'env, BigInteger>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env ByteArray>>
) -> Result<Local<'env, BigInteger>, Local<'env, Throwable>>
pub fn valueOf<'env>(
__jni_env: &'env Env,
arg0: i64
) -> Result<Option<Local<'env, BigInteger>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: i64
) -> Result<Option<Local<'env, BigInteger>>, Local<'env, Throwable>>
Required features: "java-math-BigInteger"
pub fn toByteArray<'env>(
&'env self
) -> Result<Option<Local<'env, ByteArray>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, ByteArray>>, Local<'env, Throwable>>
pub fn abs<'env>(
&'env self
) -> Result<Option<Local<'env, BigInteger>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, BigInteger>>, Local<'env, Throwable>>
Required features: "java-math-BigInteger"
pub fn negate<'env>(
&'env self
) -> Result<Option<Local<'env, BigInteger>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, BigInteger>>, Local<'env, Throwable>>
Required features: "java-math-BigInteger"
pub fn add<'env>(
&'env self,
arg0: impl Into<Option<&'env BigInteger>>
) -> Result<Option<Local<'env, BigInteger>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env BigInteger>>
) -> Result<Option<Local<'env, BigInteger>>, Local<'env, Throwable>>
Required features: "java-math-BigInteger"
pub fn subtract<'env>(
&'env self,
arg0: impl Into<Option<&'env BigInteger>>
) -> Result<Option<Local<'env, BigInteger>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env BigInteger>>
) -> Result<Option<Local<'env, BigInteger>>, Local<'env, Throwable>>
Required features: "java-math-BigInteger"
pub fn signum<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>
[src]
pub fn shiftRight<'env>(
&'env self,
arg0: i32
) -> Result<Option<Local<'env, BigInteger>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<Option<Local<'env, BigInteger>>, Local<'env, Throwable>>
Required features: "java-math-BigInteger"
pub fn shiftLeft<'env>(
&'env self,
arg0: i32
) -> Result<Option<Local<'env, BigInteger>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<Option<Local<'env, BigInteger>>, Local<'env, Throwable>>
Required features: "java-math-BigInteger"
pub fn bitLength<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>
[src]
pub fn testBit<'env>(
&'env self,
arg0: i32
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<bool, Local<'env, Throwable>>
pub fn setBit<'env>(
&'env self,
arg0: i32
) -> Result<Option<Local<'env, BigInteger>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<Option<Local<'env, BigInteger>>, Local<'env, Throwable>>
Required features: "java-math-BigInteger"
pub fn clearBit<'env>(
&'env self,
arg0: i32
) -> Result<Option<Local<'env, BigInteger>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<Option<Local<'env, BigInteger>>, Local<'env, Throwable>>
Required features: "java-math-BigInteger"
pub fn flipBit<'env>(
&'env self,
arg0: i32
) -> Result<Option<Local<'env, BigInteger>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<Option<Local<'env, BigInteger>>, Local<'env, Throwable>>
Required features: "java-math-BigInteger"
pub fn getLowestSetBit<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>
[src]
pub fn bitCount<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>
[src]
pub fn not<'env>(
&'env self
) -> Result<Option<Local<'env, BigInteger>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, BigInteger>>, Local<'env, Throwable>>
Required features: "java-math-BigInteger"
pub fn and<'env>(
&'env self,
arg0: impl Into<Option<&'env BigInteger>>
) -> Result<Option<Local<'env, BigInteger>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env BigInteger>>
) -> Result<Option<Local<'env, BigInteger>>, Local<'env, Throwable>>
Required features: "java-math-BigInteger"
pub fn or<'env>(
&'env self,
arg0: impl Into<Option<&'env BigInteger>>
) -> Result<Option<Local<'env, BigInteger>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env BigInteger>>
) -> Result<Option<Local<'env, BigInteger>>, Local<'env, Throwable>>
Required features: "java-math-BigInteger"
pub fn xor<'env>(
&'env self,
arg0: impl Into<Option<&'env BigInteger>>
) -> Result<Option<Local<'env, BigInteger>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env BigInteger>>
) -> Result<Option<Local<'env, BigInteger>>, Local<'env, Throwable>>
Required features: "java-math-BigInteger"
pub fn andNot<'env>(
&'env self,
arg0: impl Into<Option<&'env BigInteger>>
) -> Result<Option<Local<'env, BigInteger>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env BigInteger>>
) -> Result<Option<Local<'env, BigInteger>>, Local<'env, Throwable>>
Required features: "java-math-BigInteger"
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 compareTo_BigInteger<'env>(
&'env self,
arg0: impl Into<Option<&'env BigInteger>>
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env BigInteger>>
) -> Result<i32, Local<'env, Throwable>>
Required features: "java-math-BigInteger"
pub fn min<'env>(
&'env self,
arg0: impl Into<Option<&'env BigInteger>>
) -> Result<Option<Local<'env, BigInteger>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env BigInteger>>
) -> Result<Option<Local<'env, BigInteger>>, Local<'env, Throwable>>
Required features: "java-math-BigInteger"
pub fn max<'env>(
&'env self,
arg0: impl Into<Option<&'env BigInteger>>
) -> Result<Option<Local<'env, BigInteger>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env BigInteger>>
) -> Result<Option<Local<'env, BigInteger>>, Local<'env, Throwable>>
Required features: "java-math-BigInteger"
pub fn hashCode<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>
[src]
pub fn equals<'env>(
&'env self,
arg0: impl Into<Option<&'env Object>>
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Object>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "java-lang-Object"
pub fn toString<'env>(
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn toString_int<'env>(
&'env self,
arg0: i32
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn gcd<'env>(
&'env self,
arg0: impl Into<Option<&'env BigInteger>>
) -> Result<Option<Local<'env, BigInteger>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env BigInteger>>
) -> Result<Option<Local<'env, BigInteger>>, Local<'env, Throwable>>
Required features: "java-math-BigInteger"
pub fn multiply<'env>(
&'env self,
arg0: impl Into<Option<&'env BigInteger>>
) -> Result<Option<Local<'env, BigInteger>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env BigInteger>>
) -> Result<Option<Local<'env, BigInteger>>, Local<'env, Throwable>>
Required features: "java-math-BigInteger"
pub fn pow<'env>(
&'env self,
arg0: i32
) -> Result<Option<Local<'env, BigInteger>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<Option<Local<'env, BigInteger>>, Local<'env, Throwable>>
Required features: "java-math-BigInteger"
pub fn divideAndRemainder<'env>(
&'env self,
arg0: impl Into<Option<&'env BigInteger>>
) -> Result<Option<Local<'env, ObjectArray<BigInteger, Throwable>>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env BigInteger>>
) -> Result<Option<Local<'env, ObjectArray<BigInteger, Throwable>>>, Local<'env, Throwable>>
Required features: "java-math-BigInteger"
pub fn divide<'env>(
&'env self,
arg0: impl Into<Option<&'env BigInteger>>
) -> Result<Option<Local<'env, BigInteger>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env BigInteger>>
) -> Result<Option<Local<'env, BigInteger>>, Local<'env, Throwable>>
Required features: "java-math-BigInteger"
pub fn remainder<'env>(
&'env self,
arg0: impl Into<Option<&'env BigInteger>>
) -> Result<Option<Local<'env, BigInteger>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env BigInteger>>
) -> Result<Option<Local<'env, BigInteger>>, Local<'env, Throwable>>
Required features: "java-math-BigInteger"
pub fn modInverse<'env>(
&'env self,
arg0: impl Into<Option<&'env BigInteger>>
) -> Result<Option<Local<'env, BigInteger>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env BigInteger>>
) -> Result<Option<Local<'env, BigInteger>>, Local<'env, Throwable>>
Required features: "java-math-BigInteger"
pub fn modPow<'env>(
&'env self,
arg0: impl Into<Option<&'env BigInteger>>,
arg1: impl Into<Option<&'env BigInteger>>
) -> Result<Option<Local<'env, BigInteger>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env BigInteger>>,
arg1: impl Into<Option<&'env BigInteger>>
) -> Result<Option<Local<'env, BigInteger>>, Local<'env, Throwable>>
Required features: "java-math-BigInteger"
pub fn mod<'env>(
&'env self,
arg0: impl Into<Option<&'env BigInteger>>
) -> Result<Option<Local<'env, BigInteger>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env BigInteger>>
) -> Result<Option<Local<'env, BigInteger>>, Local<'env, Throwable>>
Required features: "java-math-BigInteger"
pub fn isProbablePrime<'env>(
&'env self,
arg0: i32
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<bool, Local<'env, Throwable>>
pub fn nextProbablePrime<'env>(
&'env self
) -> Result<Option<Local<'env, BigInteger>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, BigInteger>>, Local<'env, Throwable>>
Required features: "java-math-BigInteger"
pub fn probablePrime<'env>(
__jni_env: &'env Env,
arg0: i32,
arg1: impl Into<Option<&'env Random>>
) -> Result<Option<Local<'env, BigInteger>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: i32,
arg1: impl Into<Option<&'env Random>>
) -> Result<Option<Local<'env, BigInteger>>, Local<'env, Throwable>>
Required features: "java-math-BigInteger", "java-util-Random"
pub fn ONE<'env>(env: &'env Env) -> Option<Local<'env, BigInteger>>
[src]
get public static final ONE
Required feature: "java-math-BigInteger"
pub fn TEN<'env>(env: &'env Env) -> Option<Local<'env, BigInteger>>
[src]
get public static final TEN
Required feature: "java-math-BigInteger"
pub fn ZERO<'env>(env: &'env Env) -> Option<Local<'env, BigInteger>>
[src]
get public static final ZERO
Required feature: "java-math-BigInteger"
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 BigInteger
impl AsRef<Comparable> for BigInteger
fn as_ref(&self) -> &Comparable
impl AsRef<Serializable> for BigInteger
fn as_ref(&self) -> &Serializable
impl AsValidJObjectAndEnv for BigInteger
impl Deref for BigInteger
impl JniType for BigInteger
fn static_with_jni_type<R>(callback: impl FnOnce(&str) -> R) -> R
Auto Trait Implementations
impl RefUnwindSafe for BigInteger
impl !Send for BigInteger
impl !Sync for BigInteger
impl Unpin for BigInteger
impl UnwindSafe for BigInteger
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,