Struct legion::systems::System [−][src]
The concrete type which contains the system closure provided by the user. This struct should
not be constructed directly, and instead should be created using SystemBuilder
.
Implements Schedulable
which is consumable by the StageExecutor
, executing the closure.
Also handles caching of archetype information, as well as maintaining the provided information about what queries this system will run and, as a result, its data access.
Trait Implementations
impl<R, Q, F> Runnable for System<R, Q, F> where
R: for<'a> ResourceSet<'a>,
Q: QuerySet,
F: SystemFn<R, Q>,
[src]
R: for<'a> ResourceSet<'a>,
Q: QuerySet,
F: SystemFn<R, Q>,
fn name(&self) -> Option<&SystemId>
[src]
fn reads(&self) -> (&[ResourceTypeId], &[ComponentTypeId])
[src]
fn writes(&self) -> (&[ResourceTypeId], &[ComponentTypeId])
[src]
fn prepare(&mut self, world: &World)
[src]
fn accesses_archetypes(&self) -> &ArchetypeAccess
[src]
fn command_buffer_mut(&mut self, world: WorldId) -> Option<&mut CommandBuffer>
[src]
unsafe fn run_unsafe(&mut self, world: &World, resources: &UnsafeResources)
[src]
fn run(&mut self, world: &mut World, resources: &mut Resources)
[src]
Auto Trait Implementations
impl<R, Q, F> !RefUnwindSafe for System<R, Q, F>
impl<R, Q, F> Send for System<R, Q, F> where
F: Send,
Q: Send,
R: Send,
F: Send,
Q: Send,
R: Send,
impl<R, Q, F> Sync for System<R, Q, F> where
F: Sync,
Q: Sync,
R: Sync,
F: Sync,
Q: Sync,
R: Sync,
impl<R, Q, F> Unpin for System<R, Q, F> where
F: Unpin,
Q: Unpin,
F: Unpin,
Q: Unpin,
impl<R, Q, F> !UnwindSafe for System<R, Q, F>
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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Downcast for T where
T: Any,
[src]
T: Any,
pub fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
[src]
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
[src]
pub fn as_any(&self) -> &(dyn Any + 'static)
[src]
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
[src]
impl<T> DowncastSync for T where
T: Send + Sync + Any,
[src]
T: Send + Sync + Any,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
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.
pub 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>,