pub struct BodyAppearance {
pub name: String,
pub color: Color,
pub radius: f64,
pub show_velocity: bool,
pub show_orbit_trail: bool,
}Expand description
Body appearance configuration.
Fields§
§name: String§color: Color§radius: f64§show_velocity: bool§show_orbit_trail: boolTrait Implementations§
Source§impl Clone for BodyAppearance
impl Clone for BodyAppearance
Source§fn clone(&self) -> BodyAppearance
fn clone(&self) -> BodyAppearance
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 BodyAppearance
impl Debug for BodyAppearance
Source§impl Default for BodyAppearance
impl Default for BodyAppearance
Source§impl<'de> Deserialize<'de> for BodyAppearance
impl<'de> Deserialize<'de> for BodyAppearance
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 BodyAppearance
impl RefUnwindSafe for BodyAppearance
impl Send for BodyAppearance
impl Sync for BodyAppearance
impl Unpin for BodyAppearance
impl UnsafeUnpin for BodyAppearance
impl UnwindSafe for BodyAppearance
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