pub enum Class {
Fighter,
Frigate,
Cruiser,
Asteroid,
Target,
Missile,
Torpedo,
Unknown,
}
Expand description
Identifiers for each class of ship.
Variants§
Implementations§
Source§impl Class
impl Class
pub fn from_f64(v: f64) -> Class
Sourcepub fn default_stats(&self) -> ClassStats
pub fn default_stats(&self) -> ClassStats
Returns base stats for a class of ship
Trait Implementations§
impl Copy for Class
impl Eq for Class
impl StructuralPartialEq for Class
Auto Trait Implementations§
impl Freeze for Class
impl RefUnwindSafe for Class
impl Send for Class
impl Sync for Class
impl Unpin for Class
impl UnwindSafe for Class
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