Trait maplibre::tcs::tiles::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>>

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

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

§

type MutItem<'t> = &'t T

§

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

§

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

§

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)

§

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

§

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§