pub struct GraphicsSettingsController { /* private fields */ }Trait Implementations§
Source§impl Module for GraphicsSettingsController
impl Module for GraphicsSettingsController
Source§type Config = ()
type Config = ()
Some initial data that configures the module. Provided by the User when adding a module to an app.
Source§type Dependencies = DefaultDependencies
type Dependencies = DefaultDependencies
Other modules that are expected to be part of the app. Provided automatically during app setup, where the program
resolves which dependencies each module has.
Source§fn intialize(handle: Handle<Self>) -> Result<()>
fn intialize(handle: Handle<Self>) -> Result<()>
Is run once, after all modules have been initialized.
This function is optional, it is given a handle to the module itself.
other modules can be accessed if you cache the handles to them in the ) with a general Renderer module,
if a
new() function.
E.g. the LineRenderer could register its own handle (HandleHandle<Renderer> was part of the Self::Dependencies and cached in the new function.
E.g. LineRenderer could have a field renderer: Handle<Renderer> that is populated in new.Auto Trait Implementations§
impl Freeze for GraphicsSettingsController
impl !RefUnwindSafe for GraphicsSettingsController
impl !Send for GraphicsSettingsController
impl !Sync for GraphicsSettingsController
impl Unpin for GraphicsSettingsController
impl !UnwindSafe for GraphicsSettingsController
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
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.