pub struct Shot<const N: usize> {
pub pos: [i32; N],
pub vel: [i32; N],
pub half: [i32; N],
pub life: Option<u32>,
pub pierce: u32,
pub tag: u32,
}Fields§
§pos: [i32; N]§vel: [i32; N]§half: [i32; N]§life: Option<u32>§pierce: u32§tag: u32Trait Implementations§
impl<const N: usize> Copy for Shot<N>
impl<const N: usize> Eq for Shot<N>
impl<const N: usize> StructuralPartialEq for Shot<N>
Auto Trait Implementations§
impl<const N: usize> Freeze for Shot<N>
impl<const N: usize> RefUnwindSafe for Shot<N>
impl<const N: usize> Send for Shot<N>
impl<const N: usize> Sync for Shot<N>
impl<const N: usize> Unpin for Shot<N>
impl<const N: usize> UnsafeUnpin for Shot<N>
impl<const N: usize> UnwindSafe for Shot<N>
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