pub struct ProjectileState {
pub remaining_pierces: u8,
pub remaining_bounces: u8,
pub accepted_targets: usize,
pub alive: bool,
}Expand description
Read-only state after a reported contact. See the module’s runnable recipe.
Fields§
§remaining_pierces: u8Additional target contacts that may continue travel. Zero still permits one final target admission if alive; duplicates never spend this count.
remaining_bounces: u8Remaining reflections. Zero stops only on an approaching wall contact.
accepted_targets: usizeNumber of lifetime target identities retained, including the final hit.
alive: boolTrait Implementations§
Source§impl Clone for ProjectileState
impl Clone for ProjectileState
Source§fn clone(&self) -> ProjectileState
fn clone(&self) -> ProjectileState
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 ProjectileState
impl Debug for ProjectileState
Source§impl PartialEq for ProjectileState
impl PartialEq for ProjectileState
impl Copy for ProjectileState
impl Eq for ProjectileState
impl StructuralPartialEq for ProjectileState
Auto Trait Implementations§
impl Freeze for ProjectileState
impl RefUnwindSafe for ProjectileState
impl Send for ProjectileState
impl Sync for ProjectileState
impl Unpin for ProjectileState
impl UnwindSafe for ProjectileState
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