pub struct BouncingBallsState {
pub balls: Vec<Ball>,
pub config: BouncingBallsConfig,
}Expand description
Complete simulation state.
Fields§
§balls: Vec<Ball>§config: BouncingBallsConfigImplementations§
Trait Implementations§
Source§impl Clone for BouncingBallsState
impl Clone for BouncingBallsState
Source§fn clone(&self) -> BouncingBallsState
fn clone(&self) -> BouncingBallsState
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 BouncingBallsState
impl RefUnwindSafe for BouncingBallsState
impl Send for BouncingBallsState
impl Sync for BouncingBallsState
impl Unpin for BouncingBallsState
impl UnsafeUnpin for BouncingBallsState
impl UnwindSafe for BouncingBallsState
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