pub struct TraceArgs {Show 34 fields
pub symbol: Option<String>,
pub direct: bool,
pub refs: Option<String>,
pub reads: Option<String>,
pub writes: Option<String>,
pub callers: Option<String>,
pub callees: Option<String>,
pub type_name: Option<String>,
pub module: Option<String>,
pub pattern: Option<String>,
pub flow: Option<String>,
pub impact: Option<String>,
pub scope: Option<String>,
pub dead: bool,
pub xref: bool,
pub stats: bool,
pub cycles: bool,
pub kind: Option<String>,
pub in: Option<PathBuf>,
pub symbol_type: Option<String>,
pub name: Option<String>,
pub group_by: Option<String>,
pub json: bool,
pub plain: bool,
pub csv: bool,
pub dot: bool,
pub markdown: bool,
pub tui: bool,
pub max_depth: usize,
pub context: u32,
pub limit: Option<usize>,
pub count: bool,
pub summary: bool,
pub project: Option<PathBuf>,
}Expand description
Arguments for the trace command
Fields§
§symbol: Option<String>Symbol to trace (function, class, method, variable)
direct: boolDirect mode (no AI reranking)
refs: Option<String>Trace all references to symbol
reads: Option<String>Trace reads only
writes: Option<String>Trace writes only
callers: Option<String>Show what calls this symbol
callees: Option<String>Show what this symbol calls
type_name: Option<String>Trace type usage
module: Option<String>Trace module imports/exports
pattern: Option<String>Trace pattern occurrences (regex)
flow: Option<String>Trace data flow
impact: Option<String>Analyze impact of changing symbol
scope: Option<String>Show scope at location (file:line)
dead: boolFind dead/unused code
xref: boolCross-reference dead code (show potential callers)
stats: boolShow codebase statistics
cycles: boolFind circular dependencies
kind: Option<String>Filter by reference kind (read, write, call, type, import, export)
in: Option<PathBuf>Limit search to path/directory
symbol_type: Option<String>Filter by symbol type (function, method, class, variable, type, interface)
name: Option<String>Filter by name pattern (regex)
group_by: Option<String>Group results by (file, kind, scope)
json: boolOutput as JSON
plain: boolOutput as plain text (no colors)
csv: boolOutput as CSV
dot: boolOutput as DOT graph
markdown: boolOutput as Markdown
tui: boolInteractive TUI mode
max_depth: usizeMaximum trace depth
context: u32Lines of code context to show (before and after)
limit: Option<usize>Maximum number of results to show
count: boolShow only counts, not full results
summary: boolSummary mode: condensed output for multi-op commands
project: Option<PathBuf>Project path (default: current directory)
Implementations§
Source§impl TraceArgs
impl TraceArgs
Sourcepub fn build_filter(&self) -> TraceFilter
pub fn build_filter(&self) -> TraceFilter
Build a universal filter from args
Trait Implementations§
Source§impl Args for TraceArgs
impl Args for TraceArgs
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
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl FromArgMatches for TraceArgs
impl FromArgMatches for TraceArgs
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>
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>
ArgMatches to self.Auto Trait Implementations§
impl Freeze for TraceArgs
impl RefUnwindSafe for TraceArgs
impl Send for TraceArgs
impl Sync for TraceArgs
impl Unpin for TraceArgs
impl UnwindSafe for TraceArgs
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
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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