pub enum JniRustType {
}Variants§
Void
String(String)
StringArray(Vec<String>)
Boolean(bool)
Int(i64)
IntArray(Vec<i64>)
ByteArray(Vec<u8>)
Float(f32)
Double(f64)
FloatArray(Vec<f32>)
DoubleArray(Vec<f64>)
ObjectArray(Vec<JniRustType>)
Map(HashMap<String, JniRustType>)
Implementations§
Source§impl JniRustType
impl JniRustType
Sourcepub fn into_string(self) -> Option<String>
pub fn into_string(self) -> Option<String>
Try to unwrap to String.
Sourcepub fn into_string_array(self) -> Option<Vec<String>>
pub fn into_string_array(self) -> Option<Vec<String>>
Try to unwrap to StringArray.
Sourcepub fn into_int_array(self) -> Option<Vec<i64>>
pub fn into_int_array(self) -> Option<Vec<i64>>
Try to unwrap to IntArray.
Sourcepub fn into_byte_array(self) -> Option<Vec<u8>>
pub fn into_byte_array(self) -> Option<Vec<u8>>
Try to unwrap to ByteArray.
Sourcepub fn into_float(self) -> Option<f32>
pub fn into_float(self) -> Option<f32>
Try to unwrap to Float.
Sourcepub fn into_double(self) -> Option<f64>
pub fn into_double(self) -> Option<f64>
Try to unwrap to Double.
Sourcepub fn into_float_array(self) -> Option<Vec<f32>>
pub fn into_float_array(self) -> Option<Vec<f32>>
Try to unwrap to FloatArray.
Sourcepub fn into_double_array(self) -> Option<Vec<f64>>
pub fn into_double_array(self) -> Option<Vec<f64>>
Try to unwrap to DoubleArray.
Sourcepub fn into_object_array(self) -> Option<Vec<Self>>
pub fn into_object_array(self) -> Option<Vec<Self>>
Try to unwrap to ObjectArray.
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn from_jobject(env: &JNIEnv<'_>, obj: JObject<'_>) -> Result<Self>
Trait Implementations§
Source§impl Clone for JniRustType
impl Clone for JniRustType
Source§fn clone(&self) -> JniRustType
fn clone(&self) -> JniRustType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for JniRustType
impl Debug for JniRustType
Auto Trait Implementations§
impl Freeze for JniRustType
impl RefUnwindSafe for JniRustType
impl Send for JniRustType
impl Sync for JniRustType
impl Unpin for JniRustType
impl UnwindSafe for JniRustType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more