pub struct SpawnContext {
pub center_x: f32,
pub center_y: f32,
pub player_x: f32,
pub player_y: f32,
pub time: f32,
}Expand description
Context for spawn pattern generation, mirrors the WIT spawn-context record.
Fields§
§center_x: f32§center_y: f32§player_x: f32§player_y: f32§time: f32Trait Implementations§
Source§impl Clone for SpawnContext
impl Clone for SpawnContext
Source§fn clone(&self) -> SpawnContext
fn clone(&self) -> SpawnContext
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SpawnContext
impl Debug for SpawnContext
Source§impl Default for SpawnContext
impl Default for SpawnContext
Source§fn default() -> SpawnContext
fn default() -> SpawnContext
Returns the “default value” for a type. Read more
impl Copy for SpawnContext
Auto Trait Implementations§
impl Freeze for SpawnContext
impl RefUnwindSafe for SpawnContext
impl Send for SpawnContext
impl Sync for SpawnContext
impl Unpin for SpawnContext
impl UnsafeUnpin for SpawnContext
impl UnwindSafe for SpawnContext
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