Enum neweden::JumpdriveShip
source · pub enum JumpdriveShip {
BlackOps(JumpdriveSkills),
CapitalIndustrial(JumpdriveSkills),
Carrier(JumpdriveSkills),
Dreadnought(JumpdriveSkills),
ForceAuxiliary(JumpdriveSkills),
Jumpfreighter(JumpdriveSkills),
Supercarrier(JumpdriveSkills),
Titan(JumpdriveSkills),
}
Expand description
Conversion for jumpdrive capable ships. You can get the jumprange of a ship through Into conversion.
Example
use neweden::{JumpdriveShip, Lightyears, JumpdriveSkills};
let titan = JumpdriveShip::Titan(JumpdriveSkills::new(5, 5));
let ly: Lightyears = titan.into();
println!("titan's jump range with JDC5 is {:?}", ly);
Variants§
BlackOps(JumpdriveSkills)
CapitalIndustrial(JumpdriveSkills)
Carrier(JumpdriveSkills)
Dreadnought(JumpdriveSkills)
ForceAuxiliary(JumpdriveSkills)
Jumpfreighter(JumpdriveSkills)
Supercarrier(JumpdriveSkills)
Titan(JumpdriveSkills)
Trait Implementations§
source§impl Clone for JumpdriveShip
impl Clone for JumpdriveShip
source§fn clone(&self) -> JumpdriveShip
fn clone(&self) -> JumpdriveShip
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 JumpdriveShip
impl Debug for JumpdriveShip
source§impl Into<Lightyears> for JumpdriveShip
impl Into<Lightyears> for JumpdriveShip
source§fn into(self) -> Lightyears
fn into(self) -> Lightyears
Converts this type into the (usually inferred) input type.
source§impl Into<Meters> for JumpdriveShip
impl Into<Meters> for JumpdriveShip
source§impl PartialEq<JumpdriveShip> for JumpdriveShip
impl PartialEq<JumpdriveShip> for JumpdriveShip
source§fn eq(&self, other: &JumpdriveShip) -> bool
fn eq(&self, other: &JumpdriveShip) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for JumpdriveShip
impl StructuralEq for JumpdriveShip
impl StructuralPartialEq for JumpdriveShip
Auto Trait Implementations§
impl RefUnwindSafe for JumpdriveShip
impl Send for JumpdriveShip
impl Sync for JumpdriveShip
impl Unpin for JumpdriveShip
impl UnwindSafe for JumpdriveShip
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.