pub struct Object<R: Ref, T: ObjectType> { /* private fields */ }Expand description
A reference to an object with a specific type.
Implementations§
Source§impl<R: Ref, T: ObjectType> Object<R, T>
impl<R: Ref, T: ObjectType> Object<R, T>
pub fn into_object(self) -> Object<R, JavaObject>
Source§impl<'env, T: ObjectType> Object<LocalRef<'env>, T>
impl<'env, T: ObjectType> Object<LocalRef<'env>, T>
Sourcepub fn into_trampoline(self) -> TrampolineObject<'env, T>
pub fn into_trampoline(self) -> TrampolineObject<'env, T>
Converts the reference to a trampoline reference.
Trait Implementations§
Source§impl<R: Ref> Error for Object<R, JavaThrowable>where
Self: Display,
Available on crate feature std only.
impl<R: Ref> Error for Object<R, JavaThrowable>where
Self: Display,
Available on crate feature
std only.1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl<R, T> Freeze for Object<R, T>where
R: Freeze,
impl<R, T> RefUnwindSafe for Object<R, T>where
R: RefUnwindSafe,
T: RefUnwindSafe,
impl<R, T> Send for Object<R, T>
impl<R, T> Sync for Object<R, T>
impl<R, T> Unpin for Object<R, T>
impl<R, T> UnwindSafe for Object<R, T>where
R: UnwindSafe,
T: UnwindSafe,
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