Skip to main content

Action

Enum Action 

Source
pub enum Action {
    Find {
        biome: Option<String>,
        infested: bool,
        within: Option<f64>,
        nearest: Option<usize>,
        named: bool,
        discoverer: Option<String>,
        from: Option<String>,
    },
    Show {
        target: ShowTarget,
    },
    Stats {
        biomes: bool,
        discoveries: bool,
    },
    Convert {
        glyphs: Option<String>,
        coords: Option<String>,
        ga: Option<String>,
        voxel: Option<String>,
        ssi: Option<u16>,
        planet: u8,
        galaxy: String,
    },
    Route {
        biome: Option<String>,
        targets: Vec<String>,
        from: Option<String>,
        warp_range: Option<f64>,
        within: Option<f64>,
        max_targets: Option<usize>,
        algo: Option<String>,
        round_trip: bool,
    },
    Set {
        target: SetTarget,
    },
    Reset {
        target: String,
    },
    Status,
    Info,
    Help,
    Exit,
    Quit,
}

Variants§

§

Find

Search planets by biome, distance, name.

Fields

§biome: Option<String>

Filter by biome (e.g., Lush, Toxic, Scorched).

§infested: bool

Only show infested planets.

§within: Option<f64>

Only within this radius in light-years.

§nearest: Option<usize>

Show only the N nearest results.

§named: bool

Only show named planets/systems.

§discoverer: Option<String>

Filter by discoverer username (substring match).

§from: Option<String>

Distance from this base name (default: current position).

§

Show

Show detailed information about a system or base.

Fields

§target: ShowTarget
§

Stats

Display aggregate galaxy statistics.

Fields

§biomes: bool

Show biome distribution table.

§discoveries: bool

Show discovery counts by type.

§

Convert

Convert between NMS coordinate formats.

Fields

§glyphs: Option<String>

Portal glyphs as 12 hex digits or emoji.

§coords: Option<String>

Signal booster coordinates (XXXX:YYYY:ZZZZ:SSSS).

§ga: Option<String>

Galactic address as hex (0x…).

§voxel: Option<String>

Voxel position as X,Y,Z (requires –ssi).

§ssi: Option<u16>

Solar system index (required with –voxel).

§planet: u8

Planet index (0-15, defaults to 0).

§galaxy: String

Galaxy index (0-255) or name.

§

Route

Plan a route through discovered systems.

Fields

§biome: Option<String>

Filter targets by biome (e.g., Lush, Toxic).

§targets: Vec<String>

Named targets (bases or systems) to visit.

§from: Option<String>

Start from this base name (default: current position).

§warp_range: Option<f64>

Ship warp range in light-years (for hop constraints).

§within: Option<f64>

Only consider targets within this radius in light-years.

§max_targets: Option<usize>

Maximum number of targets to visit.

§algo: Option<String>

Routing algorithm: nn, nearest-neighbor, 2opt, two-opt.

§round_trip: bool

Return to starting system at the end.

§

Set

Set session context (position, biome filter, warp range).

Fields

§target: SetTarget
§

Reset

Reset session state.

Fields

§target: String

What to reset (position, biome, warp-range, all).

§

Status

Show current session state.

§

Info

Display save file summary.

§

Help

Show help for REPL commands.

§

Exit

Exit the REPL.

§

Quit

Exit the REPL.

Trait Implementations§

Source§

impl Debug for Action

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl FromArgMatches for Action

Source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>

Assign values from ArgMatches to self.
Source§

fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>

Assign values from ArgMatches to self.
Source§

impl Subcommand for Action

Source§

fn augment_subcommands<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate Self via FromArgMatches::from_arg_matches_mut Read more
Source§

fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate self via FromArgMatches::update_from_arg_matches_mut Read more
Source§

fn has_subcommand(__clap_name: &str) -> bool

Test whether Self can parse a specific subcommand

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> ArchivePointee for T

Source§

type ArchivedMetadata = ()

The archived version of the pointer metadata for this type.
Source§

fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata

Converts some archived metadata to the pointer metadata for itself.
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> LayoutRaw for T

Source§

fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>

Returns the layout of the type.
Source§

impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
where T: SharedNiching<N1, N2>, N1: Niching<T>, N2: Niching<T>,

Source§

unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool

Returns whether the given value has been niched. Read more
Source§

fn resolve_niched(out: Place<NichedOption<T, N1>>)

Writes data to out indicating that a T is niched.
Source§

impl<T> Pointee for T

Source§

type Metadata = ()

The metadata type for pointers and references to this type.
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.