# ResourceQueryMut in maplibre::tcs::resources - Rust
API documentation for the Rust `ResourceQueryMut` trait in crate `maplibre`.

# Trait maplibre::tcs::resources::ResourceQueryMut

source ·

    pub trait ResourceQueryMut {
        type MutItem<'r>;
        type State<'s>: QueryState<'s>;

        // Required method
        fn query_mut<'r, 's>(
            resources: &'r mut Resources,
            state: Self::State<'s>
        ) -> Option<Self::MutItem<'r>>;
    }

## Required Associated Types§

source

#### type MutItem<'r>

source

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

## Required Methods§

source

#### fn query_mut<'r, 's>( resources: &'r mut Resources, state: Self::State<'s> ) -> Option<Self::MutItem<'r>>

## Object Safety§

This trait is not object safe.

## Implementations on Foreign Types§

source §

### impl<'a, R: Resource> ResourceQueryMut for &'a R

§

#### type MutItem<'r> = &'r R

§

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

source §

#### fn query_mut<'r, 's>( resources: &'r mut Resources, state: Self::State<'s> ) -> Option<Self::MutItem<'r>>

source §

### impl<'a, R: Resource> ResourceQueryMut for &'a mut R

§

#### type MutItem<'r> = &'r mut R

§

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

source §

#### fn query_mut<'r, 's>( resources: &'r mut Resources, _state: Self::State<'s> ) -> Option<Self::MutItem<'r>>

source §

### impl<R1: ResourceQueryMut + ResourceQueryUnsafe + 'static> ResourceQueryMut for (R1,)

§

#### type MutItem<'r> = (<R1 as ResourceQueryMut>::MutItem<'r>,)

§

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

source §

#### fn query_mut<'r, 's>( resources: &'r mut Resources, state: Self::State<'s> ) -> Option<Self::MutItem<'r>>

source §

### impl<R1: ResourceQueryMut + ResourceQueryUnsafe + 'static, R2: ResourceQueryMut + ResourceQueryUnsafe + 'static> ResourceQueryMut for (R1, R2)

§

#### type MutItem<'r> = (<R1 as ResourceQueryMut>::MutItem<'r>, <R2 as ResourceQueryMut>::MutItem<'r>)

§

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

source §

#### fn query_mut<'r, 's>( resources: &'r mut Resources, state: Self::State<'s> ) -> Option<Self::MutItem<'r>>

source §

### impl<R1: ResourceQueryMut + ResourceQueryUnsafe + 'static, R2: ResourceQueryMut + ResourceQueryUnsafe + 'static, R3: ResourceQueryMut + ResourceQueryUnsafe + 'static> ResourceQueryMut for (R1, R2, R3)

§

#### type MutItem<'r> = (<R1 as ResourceQueryMut>::MutItem<'r>, <R2 as ResourceQueryMut>::MutItem<'r>, <R3 as ResourceQueryMut>::MutItem<'r>)

§

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

source §

#### fn query_mut<'r, 's>( resources: &'r mut Resources, state: Self::State<'s> ) -> Option<Self::MutItem<'r>>

source §

### impl<R1: ResourceQueryMut + ResourceQueryUnsafe + 'static, R2: ResourceQueryMut + ResourceQueryUnsafe + 'static, R3: ResourceQueryMut + ResourceQueryUnsafe + 'static, R4: ResourceQueryMut + ResourceQueryUnsafe + 'static> ResourceQueryMut for (R1, R2, R3, R4)

§

#### type MutItem<'r> = (<R1 as ResourceQueryMut>::MutItem<'r>, <R2 as ResourceQueryMut>::MutItem<'r>, <R3 as ResourceQueryMut>::MutItem<'r>, <R4 as ResourceQueryMut>::MutItem<'r>)

§

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

source §

#### fn query_mut<'r, 's>( resources: &'r mut Resources, state: Self::State<'s> ) -> Option<Self::MutItem<'r>>

source §

### impl<R1: ResourceQueryMut + ResourceQueryUnsafe + 'static, R2: ResourceQueryMut + ResourceQueryUnsafe + 'static, R3: ResourceQueryMut + ResourceQueryUnsafe + 'static, R4: ResourceQueryMut + ResourceQueryUnsafe + 'static, R5: ResourceQueryMut + ResourceQueryUnsafe + 'static> ResourceQueryMut for (R1, R2, R3, R4, R5)

§

#### type MutItem<'r> = (<R1 as ResourceQueryMut>::MutItem<'r>, <R2 as ResourceQueryMut>::MutItem<'r>, <R3 as ResourceQueryMut>::MutItem<'r>, <R4 as ResourceQueryMut>::MutItem<'r>, <R5 as ResourceQueryMut>::MutItem<'r>)

§

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

source §

#### fn query_mut<'r, 's>( resources: &'r mut Resources, state: Self::State<'s> ) -> Option<Self::MutItem<'r>>

source §

### impl<R1: ResourceQueryMut + ResourceQueryUnsafe + 'static, R2: ResourceQueryMut + ResourceQueryUnsafe + 'static, R3: ResourceQueryMut + ResourceQueryUnsafe + 'static, R4: ResourceQueryMut + ResourceQueryUnsafe + 'static, R5: ResourceQueryMut + ResourceQueryUnsafe + 'static, R6: ResourceQueryMut + ResourceQueryUnsafe + 'static> ResourceQueryMut for (R1, R2, R3, R4, R5, R6)

§

#### type MutItem<'r> = (<R1 as ResourceQueryMut>::MutItem<'r>, <R2 as ResourceQueryMut>::MutItem<'r>, <R3 as ResourceQueryMut>::MutItem<'r>, <R4 as ResourceQueryMut>::MutItem<'r>, <R5 as ResourceQueryMut>::MutItem<'r>, <R6 as ResourceQueryMut>::MutItem<'r>)

§

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

source §

#### fn query_mut<'r, 's>( resources: &'r mut Resources, state: Self::State<'s> ) -> Option<Self::MutItem<'r>>

## Implementors§