Trait ComponentQueryMut

Source
pub trait ComponentQueryMut {
    type MutItem<'t>;
    type State<'s>: QueryState<'s>;

    // Required method
    fn query_mut<'t, 's>(
        tiles: &'t mut Tiles,
        tile: Tile,
        state: Self::State<'s>,
    ) -> Option<Self::MutItem<'t>>;
}

Required Associated Types§

Source

type MutItem<'t>

Source

type State<'s>: QueryState<'s>

Required Methods§

Source

fn query_mut<'t, 's>( tiles: &'t mut Tiles, tile: Tile, state: Self::State<'s>, ) -> Option<Self::MutItem<'t>>

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.

Implementations on Foreign Types§

Source§

impl<'a, T: TileComponent> ComponentQueryMut for &'a T

Source§

type MutItem<'t> = &'t T

Source§

type State<'s> = EphemeralQueryState<'s>

Source§

fn query_mut<'t, 's>( tiles: &'t mut Tiles, tile: Tile, state: Self::State<'s>, ) -> Option<Self::MutItem<'t>>

Source§

impl<'a, T: TileComponent> ComponentQueryMut for &'a mut T

Source§

type MutItem<'t> = &'t mut T

Source§

type State<'s> = EphemeralQueryState<'s>

Source§

fn query_mut<'t, 's>( tiles: &'t mut Tiles, tile: Tile, _state: Self::State<'s>, ) -> Option<Self::MutItem<'t>>

Source§

impl<CQ1: ComponentQueryMut + ComponentQueryUnsafe + 'static, CQ2: ComponentQueryMut + ComponentQueryUnsafe + 'static> ComponentQueryMut for (CQ1, CQ2)

Source§

type MutItem<'t> = (<CQ1 as ComponentQueryMut>::MutItem<'t>, <CQ2 as ComponentQueryMut>::MutItem<'t>)

Source§

type State<'s> = EphemeralQueryState<'s>

Source§

fn query_mut<'t, 's>( tiles: &'t mut Tiles, tile: Tile, state: Self::State<'s>, ) -> Option<Self::MutItem<'t>>

Implementors§