pub struct CodeArgs {
pub args: Vec<String>,
pub global: GlobalArgs,
pub manifest_path: Option<String>,
pub src_only: bool,
pub no_deps: bool,
pub all_deps: bool,
pub limit: Option<String>,
pub quiet: bool,
pub refs: bool,
pub refs_only: bool,
pub in_type: Option<String>,
}Expand description
Arguments for the code subcommand.
Fields§
§args: Vec<String>Positional arguments: [TARGET] [KIND] NAME
global: GlobalArgs§manifest_path: Option<String>Path to Cargo.toml
src_only: boolOnly search src/ directory (skip examples, tests, benches)
no_deps: boolDon’t search dependencies (target crate only)
all_deps: boolSearch all direct dependencies (no nightly needed; skips accessible-path filtering)
limit: Option<String>Limit matches: N (first N) or OFFSET:N (skip OFFSET, show N)
quiet: boolOutput only file:line locations and module context, no source text
refs: boolAlso show grep-based references after definitions
refs_only: boolOnly show grep references, skip definitions
in_type: Option<String>Scope to items inside a specific type/impl block
Trait Implementations§
Source§impl Args for CodeArgs
impl Args for CodeArgs
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl FromArgMatches for CodeArgs
impl FromArgMatches for CodeArgs
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(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Auto Trait Implementations§
impl Freeze for CodeArgs
impl RefUnwindSafe for CodeArgs
impl Send for CodeArgs
impl Sync for CodeArgs
impl Unpin for CodeArgs
impl UnsafeUnpin for CodeArgs
impl UnwindSafe for CodeArgs
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