Struct AppBuilder

Source
pub struct AppBuilder<'a, 'b> { /* private fields */ }

Implementations§

Source§

impl<'a, 'b> AppBuilder<'a, 'b>

Source

pub fn new() -> Self

Source

pub fn world_mut(&mut self) -> &mut World

Source

pub fn with_bundle<ABI, D>(self, installer: ABI, data: D) -> Self
where ABI: FnMut(&mut AppBuilder<'a, 'b>, D),

Source

pub fn with_system<T>(self, system: T, name: &str, deps: &[&str]) -> Self
where T: for<'c> System<'c> + Send + 'a,

Source

pub fn with_thread_local_system<T>(self, system: T) -> Self
where T: for<'c> RunNow<'c> + 'b,

Source

pub fn with_barrier(self) -> Self

Source

pub fn with_resource<T>(self, resource: T) -> Self
where T: Send + Sync + 'static,

Source

pub fn with_component<T: Component>(self) -> Self
where T::Storage: Default,

Source

pub fn install_bundle<ABI, D>(&mut self, installer: ABI, data: D)
where ABI: FnMut(&mut AppBuilder<'a, 'b>, D),

Source

pub fn install_system<T>(&mut self, system: T, name: &str, deps: &[&str])
where T: for<'c> System<'c> + Send + 'a,

Source

pub fn install_thread_local_system<T>(&mut self, system: T)
where T: for<'c> RunNow<'c> + 'b,

Source

pub fn install_barrier(&mut self)

Source

pub fn install_resource<T>(&mut self, resource: T)
where T: Send + Sync + 'static,

Source

pub fn install_component<T: Component>(&mut self)
where T::Storage: Default,

Source

pub fn build<S, AT>(self, state: S, app_timer: AT) -> App<'a, 'b>
where S: State + 'static, AT: AppTimer + 'static,

Source

pub fn build_empty<AT>(self, app_timer: AT) -> App<'a, 'b>
where AT: AppTimer + 'static,

Trait Implementations§

Source§

impl<'a, 'b> Default for AppBuilder<'a, 'b>

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl<'a, 'b> Freeze for AppBuilder<'a, 'b>

§

impl<'a, 'b> !RefUnwindSafe for AppBuilder<'a, 'b>

§

impl<'a, 'b> !Send for AppBuilder<'a, 'b>

§

impl<'a, 'b> !Sync for AppBuilder<'a, 'b>

§

impl<'a, 'b> Unpin for AppBuilder<'a, 'b>

§

impl<'a, 'b> !UnwindSafe for AppBuilder<'a, 'b>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Any for T
where T: Any,

Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> TryDefault for T
where T: Default,

Source§

fn try_default() -> Result<T, String>

Tries to create the default.
Source§

fn unwrap_default() -> Self

Calls try_default and panics on an error case.
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> Erased for T