[][src]Struct quill_prototype::Setup

pub struct 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

impl Debug for Setup[src]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Component for T where
    T: Send + Sync + 'static, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Resource for T where
    T: Send + Sync + 'static, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.