Trait maplibre::tcs::resources::ResourceQueryUnsafe

source ·
pub trait ResourceQueryUnsafe: ResourceQueryMut {
    // Required method
    unsafe fn query_unsafe<'r, 's>(
        resources: &'r Resources,
        state: Self::State<'s>
    ) -> Option<Self::MutItem<'r>>;
}

Required Methods§

source

unsafe fn query_unsafe<'r, 's>( resources: &'r 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> ResourceQueryUnsafe for &'a R

source§

unsafe fn query_unsafe<'r, 's>( resources: &'r Resources, state: Self::State<'s> ) -> Option<Self::MutItem<'r>>

source§

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

source§

unsafe fn query_unsafe<'r, 's>( resources: &'r Resources, state: Self::State<'s> ) -> Option<Self::MutItem<'r>>

SAFETY: Safe if tiles is borrowed mutably.

Implementors§