Trait rin::ecs::ResourcesExt [−][src]
pub trait ResourcesExt { pub fn resource<T>(&self) -> Option<ReadGuardRef<'_, T>>
where
T: 'static + Send; pub fn resource_mut<T>(&self) -> Option<WriteGuardRef<'_, T, ()>>
where
T: 'static + Send; pub fn resource_as_trait<T>(&self) -> Option<ReadGuardRef<'_, T>>
where
T: 'static + Send + ?Sized; pub fn resource_as_trait_mut<T>(&self) -> Option<WriteGuardRef<'_, T, ()>>
where
T: 'static + Send + ?Sized; }
Required methods
pub fn resource<T>(&self) -> Option<ReadGuardRef<'_, T>> where
T: 'static + Send,
[src]
T: 'static + Send,
pub fn resource_mut<T>(&self) -> Option<WriteGuardRef<'_, T, ()>> where
T: 'static + Send,
[src]
T: 'static + Send,
pub fn resource_as_trait<T>(&self) -> Option<ReadGuardRef<'_, T>> where
T: 'static + Send + ?Sized,
[src]
T: 'static + Send + ?Sized,
pub fn resource_as_trait_mut<T>(&self) -> Option<WriteGuardRef<'_, T, ()>> where
T: 'static + Send + ?Sized,
[src]
T: 'static + Send + ?Sized,
Implementors
impl ResourcesExt for Scene
[src]
impl ResourcesExt for Scene
[src]pub fn resource<T>(&self) -> Option<ReadGuardRef<'_, T>> where
T: 'static + Send,
[src]
T: 'static + Send,
pub fn resource_mut<T>(&self) -> Option<WriteGuardRef<'_, T, ()>> where
T: 'static + Send,
[src]
T: 'static + Send,
pub fn resource_as_trait<T>(&self) -> Option<ReadGuardRef<'_, T>> where
T: 'static + Send + ?Sized,
[src]
T: 'static + Send + ?Sized,
pub fn resource_as_trait_mut<T>(&self) -> Option<WriteGuardRef<'_, T, ()>> where
T: 'static + Send + ?Sized,
[src]
T: 'static + Send + ?Sized,
impl ResourcesExt for World
[src]
impl ResourcesExt for World
[src]pub fn resource<T>(&self) -> Option<ReadGuardRef<'_, T>> where
T: 'static + Send,
[src]
T: 'static + Send,
pub fn resource_mut<T>(&self) -> Option<WriteGuardRef<'_, T, ()>> where
T: 'static + Send,
[src]
T: 'static + Send,
pub fn resource_as_trait<T>(&self) -> Option<ReadGuardRef<'_, T>> where
T: 'static + Send + ?Sized,
[src]
T: 'static + Send + ?Sized,
pub fn resource_as_trait_mut<T>(&self) -> Option<WriteGuardRef<'_, T, ()>> where
T: 'static + Send + ?Sized,
[src]
T: 'static + Send + ?Sized,
impl<'a> ResourcesExt for CreationProxy<'a>
[src]
impl<'a> ResourcesExt for CreationProxy<'a>
[src]pub fn resource<T>(&self) -> Option<ReadGuardRef<'_, T>> where
T: 'static + Send,
[src]
T: 'static + Send,
pub fn resource_mut<T>(&self) -> Option<WriteGuardRef<'_, T, ()>> where
T: 'static + Send,
[src]
T: 'static + Send,
pub fn resource_as_trait<T>(&self) -> Option<ReadGuardRef<'_, T>> where
T: 'static + Send + ?Sized,
[src]
T: 'static + Send + ?Sized,
pub fn resource_as_trait_mut<T>(&self) -> Option<WriteGuardRef<'_, T, ()>> where
T: 'static + Send + ?Sized,
[src]
T: 'static + Send + ?Sized,
impl<'a> ResourcesExt for Resources<'a>
[src]
impl<'a> ResourcesExt for Resources<'a>
[src]pub fn resource<T>(&self) -> Option<ReadGuardRef<'_, T>> where
T: 'static + Send,
[src]
T: 'static + Send,
pub fn resource_mut<T>(&self) -> Option<WriteGuardRef<'_, T, ()>> where
T: 'static + Send,
[src]
T: 'static + Send,
pub fn resource_as_trait<T>(&self) -> Option<ReadGuardRef<'_, T>> where
T: 'static + Send + ?Sized,
[src]
T: 'static + Send + ?Sized,
pub fn resource_as_trait_mut<T>(&self) -> Option<WriteGuardRef<'_, T, ()>> where
T: 'static + Send + ?Sized,
[src]
T: 'static + Send + ?Sized,
impl<'a> ResourcesExt for ResourcesCreation<'a>
[src]
impl<'a> ResourcesExt for ResourcesCreation<'a>
[src]pub fn resource<T>(&self) -> Option<ReadGuardRef<'_, T>> where
T: 'static + Send,
[src]
T: 'static + Send,
pub fn resource_mut<T>(&self) -> Option<WriteGuardRef<'_, T, ()>> where
T: 'static + Send,
[src]
T: 'static + Send,
pub fn resource_as_trait<T>(&self) -> Option<ReadGuardRef<'_, T>> where
T: 'static + Send + ?Sized,
[src]
T: 'static + Send + ?Sized,
pub fn resource_as_trait_mut<T>(&self) -> Option<WriteGuardRef<'_, T, ()>> where
T: 'static + Send + ?Sized,
[src]
T: 'static + Send + ?Sized,
impl<'a> ResourcesExt for ResourcesThreadLocal<'a>
[src]
impl<'a> ResourcesExt for ResourcesThreadLocal<'a>
[src]pub fn resource<T>(&self) -> Option<ReadGuardRef<'_, T>> where
T: 'static + Send,
[src]
T: 'static + Send,
pub fn resource_mut<T>(&self) -> Option<WriteGuardRef<'_, T, ()>> where
T: 'static + Send,
[src]
T: 'static + Send,
pub fn resource_as_trait<T>(&self) -> Option<ReadGuardRef<'_, T>> where
T: 'static + Send + ?Sized,
[src]
T: 'static + Send + ?Sized,
pub fn resource_as_trait_mut<T>(&self) -> Option<WriteGuardRef<'_, T, ()>> where
T: 'static + Send + ?Sized,
[src]
T: 'static + Send + ?Sized,