Enum crossbow_android::plugin::JniRustType
source · [−]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
sourceimpl 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
sourceimpl Clone for JniRustType
impl Clone for JniRustType
sourcefn clone(&self) -> JniRustType
fn clone(&self) -> JniRustType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for JniRustType
impl Debug for JniRustType
Auto Trait Implementations
impl RefUnwindSafe for JniRustType
impl Send for JniRustType
impl Sync for JniRustType
impl Unpin for JniRustType
impl UnwindSafe for JniRustType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more