pub struct TrailManager { /* private fields */ }Implementations§
Source§impl TrailManager
impl TrailManager
pub fn new() -> Self
pub fn create(&mut self) -> u32
pub fn get(&self, id: u32) -> Option<&Trail>
pub fn get_mut(&mut self, id: u32) -> Option<&mut Trail>
pub fn emit(&mut self, id: u32, pos: Vec3)
pub fn remove(&mut self, id: u32)
pub fn tick(&mut self, dt: f32)
pub fn all_trails(&self) -> impl Iterator<Item = &Trail>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TrailManager
impl RefUnwindSafe for TrailManager
impl Send for TrailManager
impl Sync for TrailManager
impl Unpin for TrailManager
impl UnsafeUnpin for TrailManager
impl UnwindSafe for TrailManager
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