pub enum ProjectileSpread {
Increasing(f32),
Horizontal(f32),
}Variants§
Implementations§
Source§impl ProjectileSpread
impl ProjectileSpread
pub fn compute_directions( self, init_dir: Dir, init_ori: Ori, num: u32, rng: &mut impl RngExt, ) -> impl Iterator<Item = Dir> + '_
Sourcepub fn estimated_spread(&self) -> f32
pub fn estimated_spread(&self) -> f32
Don’t use this for anything important, just things that need to know “roughly” the spread
Trait Implementations§
Source§impl Clone for ProjectileSpread
impl Clone for ProjectileSpread
Source§fn clone(&self) -> ProjectileSpread
fn clone(&self) -> ProjectileSpread
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ProjectileSpread
Source§impl Debug for ProjectileSpread
impl Debug for ProjectileSpread
Source§impl<'de> Deserialize<'de> for ProjectileSpread
impl<'de> Deserialize<'de> for ProjectileSpread
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ProjectileSpread
impl PartialEq for ProjectileSpread
Source§fn eq(&self, other: &ProjectileSpread) -> bool
fn eq(&self, other: &ProjectileSpread) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ProjectileSpread
impl Serialize for ProjectileSpread
impl StructuralPartialEq for ProjectileSpread
Auto Trait Implementations§
impl Freeze for ProjectileSpread
impl RefUnwindSafe for ProjectileSpread
impl Send for ProjectileSpread
impl Sync for ProjectileSpread
impl Unpin for ProjectileSpread
impl UnsafeUnpin for ProjectileSpread
impl UnwindSafe for ProjectileSpread
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<C, M> ConvertSaveload<M> for C
impl<C, M> ConvertSaveload<M> for C
§type Error = Infallible
type Error = Infallible
Error may occur during serialization or deserialization of component
§fn convert_into<F>(
&self,
_: F,
) -> Result<<C as ConvertSaveload<M>>::Data, <C as ConvertSaveload<M>>::Error>
fn convert_into<F>( &self, _: F, ) -> Result<<C as ConvertSaveload<M>>::Data, <C as ConvertSaveload<M>>::Error>
Convert this data type into serializable form (
Data) using
entity to marker mapping function§fn convert_from<F>(
data: <C as ConvertSaveload<M>>::Data,
_: F,
) -> Result<C, <C as ConvertSaveload<M>>::Error>
fn convert_from<F>( data: <C as ConvertSaveload<M>>::Data, _: F, ) -> Result<C, <C as ConvertSaveload<M>>::Error>
Convert this data from a deserializable form (
Data) using
entity to marker mapping functionimpl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> Event for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more