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 string_array(self) -> Result<Vec<String>>
pub fn string_array(self) -> Result<Vec<String>>
Try to unwrap to StringArray.
sourcepub fn byte_array(self) -> Result<Vec<u8>>
pub fn byte_array(self) -> Result<Vec<u8>>
Try to unwrap to ByteArray.
sourcepub fn float_array(self) -> Result<Vec<f32>>
pub fn float_array(self) -> Result<Vec<f32>>
Try to unwrap to FloatArray.
sourcepub fn double_array(self) -> Result<Vec<f64>>
pub fn double_array(self) -> Result<Vec<f64>>
Try to unwrap to DoubleArray.
sourcepub fn object_array(self) -> Result<Vec<Self>>
pub fn object_array(self) -> Result<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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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