[−][src]Struct bevy_ecs::Resources
A collection of resource instances identified by their type.
Implementations
impl Resources
[src]
pub fn insert<T: Resource>(&mut self, resource: T)
[src]
pub fn contains<T: Resource>(&self) -> bool
[src]
pub fn get<T: Resource>(&self) -> Option<Ref<'_, T>>
[src]
pub fn get_mut<T: Resource>(&self) -> Option<RefMut<'_, T>>
[src]
pub fn get_local<'a, T: Resource>(&'a self, id: SystemId) -> Option<Ref<'a, T>>
[src]
pub fn get_local_mut<'a, T: Resource>(
&'a self,
id: SystemId
) -> Option<RefMut<'a, T>>
[src]
&'a self,
id: SystemId
) -> Option<RefMut<'a, T>>
pub fn insert_local<T: Resource>(&mut self, id: SystemId, resource: T)
[src]
pub fn query<Q: ResourceQuery>(&self) -> <Q::Fetch as FetchResource<'_>>::Item
[src]
pub fn query_system<Q: ResourceQuery>(
&self,
id: SystemId
) -> <Q::Fetch as FetchResource<'_>>::Item
[src]
&self,
id: SystemId
) -> <Q::Fetch as FetchResource<'_>>::Item
pub unsafe fn get_unsafe_ref<T: Resource>(
&self,
resource_index: ResourceIndex
) -> NonNull<T>
[src]
&self,
resource_index: ResourceIndex
) -> NonNull<T>
pub fn borrow<T: Resource>(&self)
[src]
pub fn release<T: Resource>(&self)
[src]
pub fn borrow_mut<T: Resource>(&self)
[src]
pub fn release_mut<T: Resource>(&self)
[src]
Trait Implementations
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Component for T where
T: 'static + Send + Sync,
[src]
T: 'static + Send + Sync,
impl<T> Downcast for T where
T: Any,
[src]
T: Any,
fn into_any(self: Box<T>) -> Box<dyn Any + 'static>
[src]
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
[src]
fn as_any(&self) -> &(dyn Any + 'static)
[src]
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
[src]
impl<T> DowncastSync for T where
T: Send + Sync + Any,
[src]
T: Send + Sync + Any,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,