pub struct GravityField {
pub total_goals: usize,
pub field_center: GravityCenter,
pub wells: Vec<GravityWell>,
pub total_pull: f64,
pub dominant_attractor: Option<GoalId>,
}Fields§
§total_goals: usize§field_center: GravityCenter§wells: Vec<GravityWell>§total_pull: f64§dominant_attractor: Option<GoalId>Trait Implementations§
Source§impl Clone for GravityField
impl Clone for GravityField
Source§fn clone(&self) -> GravityField
fn clone(&self) -> GravityField
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 moreSource§impl Debug for GravityField
impl Debug for GravityField
Source§impl<'de> Deserialize<'de> for GravityField
impl<'de> Deserialize<'de> for GravityField
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
Auto Trait Implementations§
impl Freeze for GravityField
impl RefUnwindSafe for GravityField
impl Send for GravityField
impl Sync for GravityField
impl Unpin for GravityField
impl UnsafeUnpin for GravityField
impl UnwindSafe for GravityField
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