pub struct BodyConfig {
pub name: String,
pub mass: f64,
pub position: (f64, f64, f64),
pub velocity: (f64, f64, f64),
}Expand description
Single body configuration.
Fields§
§name: String§mass: f64§position: (f64, f64, f64)§velocity: (f64, f64, f64)Trait Implementations§
Source§impl Clone for BodyConfig
impl Clone for BodyConfig
Source§fn clone(&self) -> BodyConfig
fn clone(&self) -> BodyConfig
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 BodyConfig
impl Debug for BodyConfig
Source§impl<'de> Deserialize<'de> for BodyConfig
impl<'de> Deserialize<'de> for BodyConfig
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 BodyConfig
impl RefUnwindSafe for BodyConfig
impl Send for BodyConfig
impl Sync for BodyConfig
impl Unpin for BodyConfig
impl UnsafeUnpin for BodyConfig
impl UnwindSafe for BodyConfig
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