[−][src]Struct quill_prototype::Setup
Struct passed to your plugin's setup
function which
is called when it's loaded.
Use this struct to register systems, resources, components, commands, event handlers, etc.
Implementations
impl Setup
[src]
pub fn resource(&mut self, _resource: impl Resource) -> &mut Self
[src]
Registers a resource. The resource can later
be accessed via State::resource
.
pub fn system(&mut self, _system: System) -> &mut Self
[src]
Registers a system.
The system
function will be invoked each tick.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Setup
impl Send for Setup
impl Sync for Setup
impl Unpin for Setup
impl UnwindSafe for Setup
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Component for T where
T: Send + Sync + 'static,
[src]
T: Send + Sync + 'static,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Resource for T where
T: Send + Sync + 'static,
[src]
T: Send + Sync + 'static,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,