pub struct ReferencesArgs {
pub name: String,
pub path: Option<PathBuf>,
pub limit: usize,
pub globs: Vec<String>,
}Fields§
§name: StringSymbol name to find references for. Pass a qname (e.g. pkg.mod.Type)
for exact definition lookup, or a bare identifier (e.g. MasterBusParams)
to match any symbol whose qname ends with .<name> plus all text
occurrences.
path: Option<PathBuf>Project root to search. Defaults to the current directory.
rg respects .gitignore from this directory downward.
limit: usizeCap the number of occurrences returned. 0 = unlimited.
globs: Vec<String>Restrict the rg scan to files matching this glob (passed through
as rg --glob). Repeatable.
Trait Implementations§
Source§impl Args for ReferencesArgs
impl Args for ReferencesArgs
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 Debug for ReferencesArgs
impl Debug for ReferencesArgs
Source§impl FromArgMatches for ReferencesArgs
impl FromArgMatches for ReferencesArgs
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 ReferencesArgs
impl RefUnwindSafe for ReferencesArgs
impl Send for ReferencesArgs
impl Sync for ReferencesArgs
impl Unpin for ReferencesArgs
impl UnsafeUnpin for ReferencesArgs
impl UnwindSafe for ReferencesArgs
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