# ComponentQuery in maplibre::tcs::tiles - Rust
API documentation for the Rust `ComponentQuery` trait in crate `maplibre`.

# Trait maplibre::tcs::tiles::ComponentQuery

source ·

    pub trait ComponentQuery {
        type Item<'t>;
        type State<'s>: QueryState<'s>;

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

## Required Associated Types§

source

#### type Item<'t>

source

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

## Required Methods§

source

#### fn query<'t, 's>( tiles: &'t Tiles, tile: Tile, state: Self::State<'s> ) -> Option<Self::Item<'t>>

## Object Safety§

This trait is not object safe.

## Implementations on Foreign Types§

source §

### impl<'a, T: TileComponent> ComponentQuery for &'a T

§

#### type Item<'t> = &'t T

§

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

source §

#### fn query<'t, 's>( tiles: &'t Tiles, tile: Tile, _state: Self::State<'s> ) -> Option<Self::Item<'t>>

source §

### impl<CQ1: ComponentQuery, CQ2: ComponentQuery> ComponentQuery for (CQ1, CQ2)

§

#### type Item<'t> = (<CQ1 as ComponentQuery>::Item<'t>, <CQ2 as ComponentQuery>::Item<'t>)

§

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

source §

#### fn query<'t, 's>( tiles: &'t Tiles, tile: Tile, state: Self::State<'s> ) -> Option<Self::Item<'t>>

## Implementors§