pub enum ReferencePoint {
CurrentPosition,
Base(String),
Address(GalacticAddress),
}Expand description
How to determine the “from” point for distance calculations.
Variants§
CurrentPosition
Use the player’s current position from the save file.
Base(String)
Use a named base’s position.
Address(GalacticAddress)
Use an explicit galactic address.
Trait Implementations§
Source§impl Clone for ReferencePoint
impl Clone for ReferencePoint
Source§fn clone(&self) -> ReferencePoint
fn clone(&self) -> ReferencePoint
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 ReferencePoint
impl Debug for ReferencePoint
Source§impl Default for ReferencePoint
impl Default for ReferencePoint
Source§fn default() -> ReferencePoint
fn default() -> ReferencePoint
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ReferencePoint
impl RefUnwindSafe for ReferencePoint
impl Send for ReferencePoint
impl Sync for ReferencePoint
impl Unpin for ReferencePoint
impl UnsafeUnpin for ReferencePoint
impl UnwindSafe for ReferencePoint
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