Struct roci::SystemFn

source ·
pub struct SystemFn<D: DriverMode, P, F> { /* private fields */ }

Trait Implementations§

source§

impl<F, D, T1> System for SystemFn<D, (T1,), F>
where F: for<'a> Fn(&'a mut T1), D: DriverMode, T1: Componentize + Decomponentize + Default,

§

type World = (T1,)

§

type Driver = D

source§

fn update(&mut self, world: &mut Self::World)

source§

const MAX_SIZE: usize = <Self::World>::MAX_SIZE

source§

fn init_world(&mut self) -> Self::World

source§

fn pipe<P, R: IntoSystem<P>>( self, right: R, ) -> Pipe<Self, R::System<Self::Driver>>
where Self: Sized,

source§

impl<F, D, T1, T2> System for SystemFn<D, (T1, T2), F>

§

type World = (T1, T2)

§

type Driver = D

source§

fn update(&mut self, world: &mut Self::World)

source§

const MAX_SIZE: usize = <Self::World>::MAX_SIZE

source§

fn init_world(&mut self) -> Self::World

source§

fn pipe<P, R: IntoSystem<P>>( self, right: R, ) -> Pipe<Self, R::System<Self::Driver>>
where Self: Sized,

source§

impl<F, D, T1, T2, T3> System for SystemFn<D, (T1, T2, T3), F>

§

type World = (T1, T2, T3)

§

type Driver = D

source§

fn update(&mut self, world: &mut Self::World)

source§

const MAX_SIZE: usize = <Self::World>::MAX_SIZE

source§

fn init_world(&mut self) -> Self::World

source§

fn pipe<P, R: IntoSystem<P>>( self, right: R, ) -> Pipe<Self, R::System<Self::Driver>>
where Self: Sized,

source§

impl<F, D, T1, T2, T3, T4> System for SystemFn<D, (T1, T2, T3, T4), F>

§

type World = (T1, T2, T3, T4)

§

type Driver = D

source§

fn update(&mut self, world: &mut Self::World)

source§

const MAX_SIZE: usize = <Self::World>::MAX_SIZE

source§

fn init_world(&mut self) -> Self::World

source§

fn pipe<P, R: IntoSystem<P>>( self, right: R, ) -> Pipe<Self, R::System<Self::Driver>>
where Self: Sized,

source§

impl<F, D, T1, T2, T3, T4, T5> System for SystemFn<D, (T1, T2, T3, T4, T5), F>

§

type World = (T1, T2, T3, T4, T5)

§

type Driver = D

source§

fn update(&mut self, world: &mut Self::World)

source§

const MAX_SIZE: usize = <Self::World>::MAX_SIZE

source§

fn init_world(&mut self) -> Self::World

source§

fn pipe<P, R: IntoSystem<P>>( self, right: R, ) -> Pipe<Self, R::System<Self::Driver>>
where Self: Sized,

source§

impl<F, D, T1, T2, T3, T4, T5, T6> System for SystemFn<D, (T1, T2, T3, T4, T5, T6), F>

§

type World = (T1, T2, T3, T4, T5, T6)

§

type Driver = D

source§

fn update(&mut self, world: &mut Self::World)

source§

const MAX_SIZE: usize = <Self::World>::MAX_SIZE

source§

fn init_world(&mut self) -> Self::World

source§

fn pipe<P, R: IntoSystem<P>>( self, right: R, ) -> Pipe<Self, R::System<Self::Driver>>
where Self: Sized,

source§

impl<F, D, T1, T2, T3, T4, T5, T6, T7> System for SystemFn<D, (T1, T2, T3, T4, T5, T6, T7), F>

§

type World = (T1, T2, T3, T4, T5, T6, T7)

§

type Driver = D

source§

fn update(&mut self, world: &mut Self::World)

source§

const MAX_SIZE: usize = <Self::World>::MAX_SIZE

source§

fn init_world(&mut self) -> Self::World

source§

fn pipe<P, R: IntoSystem<P>>( self, right: R, ) -> Pipe<Self, R::System<Self::Driver>>
where Self: Sized,

source§

impl<F, D, T1, T2, T3, T4, T5, T6, T7, T8> System for SystemFn<D, (T1, T2, T3, T4, T5, T6, T7, T8), F>

§

type World = (T1, T2, T3, T4, T5, T6, T7, T8)

§

type Driver = D

source§

fn update(&mut self, world: &mut Self::World)

source§

const MAX_SIZE: usize = <Self::World>::MAX_SIZE

source§

fn init_world(&mut self) -> Self::World

source§

fn pipe<P, R: IntoSystem<P>>( self, right: R, ) -> Pipe<Self, R::System<Self::Driver>>
where Self: Sized,

source§

impl<F, D, T1, T2, T3, T4, T5, T6, T7, T9, T10> System for SystemFn<D, (T1, T2, T3, T4, T5, T6, T7, T9, T10), F>

§

type World = (T1, T2, T3, T4, T5, T6, T7, T9, T10)

§

type Driver = D

source§

fn update(&mut self, world: &mut Self::World)

source§

const MAX_SIZE: usize = <Self::World>::MAX_SIZE

source§

fn init_world(&mut self) -> Self::World

source§

fn pipe<P, R: IntoSystem<P>>( self, right: R, ) -> Pipe<Self, R::System<Self::Driver>>
where Self: Sized,

source§

impl<F, D, T1, T2, T3, T4, T5, T6, T7, T9, T10, T11> System for SystemFn<D, (T1, T2, T3, T4, T5, T6, T7, T9, T10, T11), F>

§

type World = (T1, T2, T3, T4, T5, T6, T7, T9, T10, T11)

§

type Driver = D

source§

fn update(&mut self, world: &mut Self::World)

source§

const MAX_SIZE: usize = <Self::World>::MAX_SIZE

source§

fn init_world(&mut self) -> Self::World

source§

fn pipe<P, R: IntoSystem<P>>( self, right: R, ) -> Pipe<Self, R::System<Self::Driver>>
where Self: Sized,

source§

impl<F, D, T1, T2, T3, T4, T5, T6, T7, T9, T10, T11, T12> System for SystemFn<D, (T1, T2, T3, T4, T5, T6, T7, T9, T10, T11, T12), F>

§

type World = (T1, T2, T3, T4, T5, T6, T7, T9, T10, T11, T12)

§

type Driver = D

source§

fn update(&mut self, world: &mut Self::World)

source§

const MAX_SIZE: usize = <Self::World>::MAX_SIZE

source§

fn init_world(&mut self) -> Self::World

source§

fn pipe<P, R: IntoSystem<P>>( self, right: R, ) -> Pipe<Self, R::System<Self::Driver>>
where Self: Sized,

source§

impl<F, D, T1, T2, T3, T4, T5, T6, T7, T9, T10, T11, T12, T13> System for SystemFn<D, (T1, T2, T3, T4, T5, T6, T7, T9, T10, T11, T12, T13), F>

§

type World = (T1, T2, T3, T4, T5, T6, T7, T9, T10, T11, T12, T13)

§

type Driver = D

source§

fn update(&mut self, world: &mut Self::World)

source§

const MAX_SIZE: usize = <Self::World>::MAX_SIZE

source§

fn init_world(&mut self) -> Self::World

source§

fn pipe<P, R: IntoSystem<P>>( self, right: R, ) -> Pipe<Self, R::System<Self::Driver>>
where Self: Sized,

Auto Trait Implementations§

§

impl<D, P, F> Freeze for SystemFn<D, P, F>
where F: Freeze,

§

impl<D, P, F> RefUnwindSafe for SystemFn<D, P, F>

§

impl<D, P, F> Send for SystemFn<D, P, F>
where F: Send, D: Send, P: Send,

§

impl<D, P, F> Sync for SystemFn<D, P, F>
where F: Sync, D: Sync, P: Sync,

§

impl<D, P, F> Unpin for SystemFn<D, P, F>
where F: Unpin, D: Unpin, P: Unpin,

§

impl<D, P, F> UnwindSafe for SystemFn<D, P, F>
where F: UnwindSafe, D: UnwindSafe, P: UnwindSafe,

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> 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> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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<S> IntoSystem<()> for S
where S: System,

§

type System<D: DriverMode> = S

source§

fn into_system<D>(self) -> <S as IntoSystem<()>>::System<D>
where D: DriverMode,

source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<SS, SP> SupersetOf<SS> for SP
where SS: SubsetOf<SP>,

source§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
source§

fn is_in_subset(&self) -> bool

Checks if self is actually part of its subset T (and can be converted to it).
source§

fn to_subset_unchecked(&self) -> SS

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
source§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
source§

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

§

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>,

§

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> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more