pub struct Paths { /* private fields */ }
Expand description
Find and display the call paths to a function in the given binary’s call graph.
Implementations§
Source§impl Paths
impl Paths
Sourcepub fn add_function(&mut self, function: String)
pub fn add_function(&mut self, function: String)
Add a function to find call paths for.
Sourcepub fn max_paths(&self) -> u32
pub fn max_paths(&self) -> u32
The maximum number of paths, regardless of depth in the tree, to display.
Sourcepub fn descending(&self) -> bool
pub fn descending(&self) -> bool
The direction in which the call paths are traversed.
Sourcepub fn using_regexps(&self) -> bool
pub fn using_regexps(&self) -> bool
Whether or not functions
should be treated as regular expressions.
Sourcepub fn set_max_depth(&mut self, max_depth: u32)
pub fn set_max_depth(&mut self, max_depth: u32)
Set the maximum depth to print the paths.
Sourcepub fn set_max_paths(&mut self, max_paths: u32)
pub fn set_max_paths(&mut self, max_paths: u32)
Set the maximum number of paths, regardless of depth in the tree, to display.
Sourcepub fn set_descending(&mut self, descending: bool)
pub fn set_descending(&mut self, descending: bool)
Set the call path traversal direction.
Sourcepub fn set_using_regexps(&mut self, using_regexps: bool)
pub fn set_using_regexps(&mut self, using_regexps: bool)
Set Whether or not functions
should be treated as regular expressions.
Trait Implementations§
Source§impl CommonCliOptions for Paths
impl CommonCliOptions for Paths
Source§fn parse_mode(&self) -> ParseMode
fn parse_mode(&self) -> ParseMode
Get the input data parse mode.
Source§fn output_destination(&self) -> &OutputDestination
fn output_destination(&self) -> &OutputDestination
Get the output destination.
Source§fn output_format(&self) -> OutputFormat
fn output_format(&self) -> OutputFormat
Get the output format.
Source§impl StructOpt for Paths
impl StructOpt for Paths
Source§fn from_clap(matches: &ArgMatches<'_>) -> Self
fn from_clap(matches: &ArgMatches<'_>) -> Self
Builds the struct from
clap::ArgMatches
. It’s guaranteed to succeed
if matches
originates from an App
generated by StructOpt::clap
called on
the same type, otherwise it must panic.Source§fn from_args() -> Selfwhere
Self: Sized,
fn from_args() -> Selfwhere
Self: Sized,
Builds the struct from the command line arguments (
std::env::args_os
).
Calls clap::Error::exit
on failure, printing the error message and aborting the program.Source§fn from_args_safe() -> Result<Self, Error>where
Self: Sized,
fn from_args_safe() -> Result<Self, Error>where
Self: Sized,
Builds the struct from the command line arguments (
std::env::args_os
).
Unlike StructOpt::from_args
, returns clap::Error
on failure instead of aborting the program,
so calling .exit
is up to you.Source§fn from_iter<I>(iter: I) -> Self
fn from_iter<I>(iter: I) -> Self
Gets the struct from any iterator such as a
Vec
of your making.
Print the error message and quit the program in case of failure. Read moreAuto Trait Implementations§
impl Freeze for Paths
impl RefUnwindSafe for Paths
impl Send for Paths
impl Sync for Paths
impl Unpin for Paths
impl UnwindSafe for Paths
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