pub struct Class<R: Ref, T: ObjectType> { /* private fields */ }Expand description
A reference to a class with a specific type.
Implementations§
Source§impl<R: Ref, T: ObjectType> Class<R, T>
impl<R: Ref, T: ObjectType> Class<R, T>
pub fn into_class_object(self) -> Object<R, JavaClass>
Source§impl<R: Ref, T: ObjectType> Class<R, T>
impl<R: Ref, T: ObjectType> Class<R, T>
pub fn into_object(self) -> Object<R, JavaObject>
Source§impl<'env, T: ObjectType> Class<LocalRef<'env>, T>
impl<'env, T: ObjectType> Class<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§
Auto Trait Implementations§
impl<R, T> Freeze for Class<R, T>where
R: Freeze,
impl<R, T> RefUnwindSafe for Class<R, T>where
R: RefUnwindSafe,
T: RefUnwindSafe,
impl<R, T> Send for Class<R, T>
impl<R, T> Sync for Class<R, T>
impl<R, T> Unpin for Class<R, T>
impl<R, T> UnwindSafe for Class<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