pub struct InitHandle { /* private fields */ }
Expand description
A handle that can register new classes to the engine during initialization.
Implementations§
Source§impl InitHandle
impl InitHandle
Sourcepub fn add_class<C>(&self, desc: ClassDescriptor<'_>) -> ClassBuilder<C>where
C: NativeClass,
pub fn add_class<C>(&self, desc: ClassDescriptor<'_>) -> ClassBuilder<C>where
C: NativeClass,
Registers a new class to the engine.
The return ClassBuilder
can be used to add methods, signals and properties
to the class.
Trait Implementations§
Source§impl Clone for InitHandle
impl Clone for InitHandle
Source§fn clone(&self) -> InitHandle
fn clone(&self) -> InitHandle
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Copy for InitHandle
Auto Trait Implementations§
impl Freeze for InitHandle
impl RefUnwindSafe for InitHandle
impl !Send for InitHandle
impl !Sync for InitHandle
impl Unpin for InitHandle
impl UnwindSafe for InitHandle
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