pub struct ShipCockpitModule(pub ShipType);
Expand description
Represents the cockpit module, which is different per ship type.
Tuple Fields§
§0: ShipType
Trait Implementations§
Source§impl Clone for ShipCockpitModule
impl Clone for ShipCockpitModule
Source§fn clone(&self) -> ShipCockpitModule
fn clone(&self) -> ShipCockpitModule
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 ShipCockpitModule
impl Debug for ShipCockpitModule
Source§impl<'de> Deserialize<'de> for ShipCockpitModule
impl<'de> Deserialize<'de> for ShipCockpitModule
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 FromStr for ShipCockpitModule
impl FromStr for ShipCockpitModule
Source§impl PartialEq for ShipCockpitModule
impl PartialEq for ShipCockpitModule
Source§impl Serialize for ShipCockpitModule
impl Serialize for ShipCockpitModule
impl StructuralPartialEq for ShipCockpitModule
Auto Trait Implementations§
impl Freeze for ShipCockpitModule
impl RefUnwindSafe for ShipCockpitModule
impl Send for ShipCockpitModule
impl Sync for ShipCockpitModule
impl Unpin for ShipCockpitModule
impl UnwindSafe for ShipCockpitModule
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