pub struct TileLayers { /* private fields */ }Expand description
The game’s tile layers. The renderer is given them beside each frame,
whose TileLayerDraws name the ones to draw, as its sprites name
textures in the asset server (ADR-0023).
Implementations§
Source§impl TileLayers
impl TileLayers
Sourcepub fn get(&self, handle: Handle<TileLayer>) -> Option<&TileLayer>
pub fn get(&self, handle: Handle<TileLayer>) -> Option<&TileLayer>
The layer of handle, if it is still here.
Sourcepub fn get_mut(&mut self, handle: Handle<TileLayer>) -> Option<&mut TileLayer>
pub fn get_mut(&mut self, handle: Handle<TileLayer>) -> Option<&mut TileLayer>
The layer of handle, to change, if it is still here.
Trait Implementations§
Source§impl Debug for TileLayers
impl Debug for TileLayers
Auto Trait Implementations§
impl Forget for TileLayers
impl Freeze for TileLayers
impl Move for TileLayers
impl RefUnwindSafe for TileLayers
impl Send for TileLayers
impl Sync for TileLayers
impl Unpin for TileLayers
impl UnsafeUnpin for TileLayers
impl UnwindSafe for TileLayers
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