pub struct PlanetComposition {
pub ice: f32,
pub rock: f32,
pub metal: f32,
}
Fields§
§ice: f32
§rock: f32
§metal: f32
Trait Implementations§
Source§impl Clone for PlanetComposition
impl Clone for PlanetComposition
Source§fn clone(&self) -> PlanetComposition
fn clone(&self) -> PlanetComposition
Returns a copy 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 PlanetComposition
impl Debug for PlanetComposition
Source§impl Default for PlanetComposition
impl Default for PlanetComposition
Source§fn default() -> PlanetComposition
fn default() -> PlanetComposition
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PlanetComposition
impl<'de> Deserialize<'de> for PlanetComposition
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
Source§impl PartialEq for PlanetComposition
impl PartialEq for PlanetComposition
Source§impl Serialize for PlanetComposition
impl Serialize for PlanetComposition
impl StructuralPartialEq for PlanetComposition
Auto Trait Implementations§
impl Freeze for PlanetComposition
impl RefUnwindSafe for PlanetComposition
impl Send for PlanetComposition
impl Sync for PlanetComposition
impl Unpin for PlanetComposition
impl UnwindSafe for PlanetComposition
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