pub struct Instance { /* private fields */ }
Expand description
A Java instance
Implementations§
source§impl Instance
impl Instance
sourcepub fn class_name(&self) -> &str
pub fn class_name(&self) -> &str
Returns the class name of this instance
sourcepub fn java_object(self) -> jobject
pub fn java_object(self) -> jobject
Consumes the Instance and returns its jobject
pub fn from(obj: jobject) -> Result<Instance>
👎Deprecated since 0.12.0: Please use Instance::from_jobject or Instance::from_jobject_with_global_ref instead
pub fn from_jobject(obj: jobject) -> Result<Instance>
pub fn from_jobject_with_global_ref(obj: jobject) -> Result<Instance>
Trait Implementations§
source§impl From<Instance> for InvocationArg
impl From<Instance> for InvocationArg
source§fn from(instance: Instance) -> InvocationArg
fn from(instance: Instance) -> InvocationArg
Converts to this type from the input type.
source§impl TryFrom<InvocationArg> for Instance
impl TryFrom<InvocationArg> for Instance
impl Send for Instance
Auto Trait Implementations§
impl Freeze for Instance
impl RefUnwindSafe for Instance
impl !Sync for Instance
impl Unpin for Instance
impl UnwindSafe for Instance
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