pub struct NBodySimulation {
pub bodies: Vec<Body>,
pub dt: f64,
pub time: f64,
pub softening: f64,
}Expand description
N-body simulation state.
Fields§
§bodies: Vec<Body>§dt: f64§time: f64§softening: f64Implementations§
Trait Implementations§
Source§impl Clone for NBodySimulation
impl Clone for NBodySimulation
Source§fn clone(&self) -> NBodySimulation
fn clone(&self) -> NBodySimulation
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 moreAuto Trait Implementations§
impl Freeze for NBodySimulation
impl RefUnwindSafe for NBodySimulation
impl Send for NBodySimulation
impl Sync for NBodySimulation
impl Unpin for NBodySimulation
impl UnsafeUnpin for NBodySimulation
impl UnwindSafe for NBodySimulation
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