pub enum Commands {
Daemon {
workspace: PathBuf,
},
Status,
Refresh,
Symbol {
name: String,
kind: String,
exact: bool,
body: bool,
max_lines: usize,
},
Outline {
file: Option<PathBuf>,
file_list: Option<String>,
output: Option<PathBuf>,
body: bool,
max_lines: usize,
},
Definition {
file: PathBuf,
line: u32,
col: u32,
body: bool,
max_lines: usize,
no_line_numbers: bool,
},
Body {
file: PathBuf,
line: u32,
col: u32,
max_lines: usize,
no_line_numbers: bool,
},
Hover {
file: PathBuf,
line: u32,
col: u32,
},
References {
file: PathBuf,
line: u32,
col: u32,
},
Calls {
file: PathBuf,
line: u32,
col: u32,
direction: CallDirection,
depth: u32,
},
Relations {
file: PathBuf,
line: u32,
col: u32,
mode: RelationMode,
},
InitSkill {
workspace: PathBuf,
dir: Option<PathBuf>,
},
}Variants§
Daemon
Start the background LSP daemon and HTTP server
Status
Query daemon and rust-analyzer status
Refresh
Refresh / restart the rust-analyzer session
Symbol
Search workspace symbols
Fields
Outline
Extract file document symbols outline
Fields
Definition
Go to definition at file line and column
Fields
Body
Inspect source code body of struct, function, enum, impl, trait, or module
Fields
Hover
Show documentation and type information at a file position
Fields
References
Find references at a file position
Fields
Calls
Find incoming or outgoing calls at a file position
Fields
§
direction: CallDirectionCall direction: incoming or outgoing (default: incoming)
Relations
Query Rust symbol relations
Fields
§
mode: RelationModeRelation mode (currently only implementations)
InitSkill
Initialize/install the rust-codebase-navigation SKILL.md in a workspace
Trait Implementations§
Source§impl FromArgMatches for Commands
impl FromArgMatches for Commands
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
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>
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 Commands
impl Subcommand for Commands
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
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 moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Test whether
Self can parse a specific subcommandAuto Trait Implementations§
impl Freeze for Commands
impl RefUnwindSafe for Commands
impl Send for Commands
impl Sync for Commands
impl Unpin for Commands
impl UnsafeUnpin for Commands
impl UnwindSafe for Commands
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