pub struct Resources { /* private fields */ }
Implementations§
Source§impl Resources
impl Resources
pub fn add(&mut self, bundle: impl Bundle) -> Result<(), Box<dyn Error>>
pub fn remove<T: BundleColumns>(&mut self) -> Result<(), Box<dyn Error>>
pub fn remove_raw( &mut self, columns: Vec<ArchetypeColumnInfo>, ) -> Result<(), Box<dyn Error>>
pub fn clear(&mut self)
pub fn clear_changes(&mut self)
pub fn added(&self) -> &WorldChanges
pub fn removed(&self) -> &WorldChanges
pub fn updated(&self) -> Option<RwLockReadGuard<'_, WorldChanges>>
pub fn did_changed<T: Component>(&self) -> bool
pub fn did_changed_raw(&self, type_hash: TypeHash) -> bool
pub fn get<const LOCKING: bool, T: Component>( &self, ) -> Result<ComponentRef<'_, LOCKING, T>, Box<dyn Error>>
pub fn get_mut<const LOCKING: bool, T: Component>( &self, ) -> Result<ComponentRefMut<'_, LOCKING, T>, Box<dyn Error>>
pub fn query<'a, const LOCKING: bool, Fetch: TypedQueryFetch<'a, LOCKING>>( &'a self, ) -> TypedQueryIter<'a, LOCKING, Fetch> ⓘ
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Resources
impl RefUnwindSafe for Resources
impl Send for Resources
impl Sync for Resources
impl Unpin for Resources
impl UnwindSafe for Resources
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more