Trait CommandWithEntity

Source
pub trait CommandWithEntity<Out> {
    // Required method
    fn with_entity(self, entity: Entity) -> impl Command<Out> + HandleError<Out>;
}
Expand description

Passes in a specific entity to an EntityCommand, resulting in a Command that internally runs the EntityCommand on that entity.

Required Methods§

Source

fn with_entity(self, entity: Entity) -> impl Command<Out> + HandleError<Out>

Passes in a specific entity to an EntityCommand, resulting in a Command that internally runs the EntityCommand on that entity.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<C> CommandWithEntity<Result<(), EntityMutableFetchError>> for C
where C: EntityCommand,

Source§

impl<C, T, Err> CommandWithEntity<Result<T, EntityCommandError<Err>>> for C
where C: EntityCommand<Result<T, Err>>, Err: Debug + Display + Send + Sync + 'static,