paralegal_flow::args

Struct ClapArgs

Source
pub struct ClapArgs {
Show 13 fields verbose: bool, debug: bool, trace: bool, debug_target: Option<String>, result_path: PathBuf, relaxed: bool, target: Option<String>, abort_after_analysis: bool, attach_to_debugger: Option<Debugger>, anactrl: ClapAnalysisCtrl, marker_control: MarkerControl, dump: ParseableDumpArgs, cargo_args: Vec<String>,
}
Expand description

Arguments as exposed on the command line.

You should then use try_into to convert this to [Args], the argument structure used internally.

Fields§

§verbose: bool

Print additional logging output (up to the “info” level)

§debug: bool

Print additional logging output (up to the “debug” level).

Passing this flag (or env variable) with no value will enable debug output globally. You may instead pass the name of a specific target function and then only during analysis of that function the debug output is enabled.

§trace: bool§debug_target: Option<String>§result_path: PathBuf

Where to write the resulting GraphLocation (defaults to flow-graph.json)

§relaxed: bool

Emit warnings instead of aborting the analysis on sanity checks

§target: Option<String>

Run paralegal only on this crate

§abort_after_analysis: bool

Abort the compilation after finishing the analysis

§attach_to_debugger: Option<Debugger>

Attach to a debugger before running the analyses

§anactrl: ClapAnalysisCtrl

Additional arguments that control the flow analysis specifically

§marker_control: MarkerControl

Additional arguments which control marker assignment and discovery

§dump: ParseableDumpArgs

Additional arguments that control debug args specifically

§cargo_args: Vec<String>

Pass through for additional cargo arguments (like –features)

Trait Implementations§

Source§

impl Args for ClapArgs

Source§

fn group_id() -> Option<Id>

Report the ArgGroup::id for this set of arguments
Source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate Self via FromArgMatches::from_arg_matches_mut Read more
Source§

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 more
Source§

impl FromArgMatches for ClapArgs

Source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

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>

Assign values from ArgMatches to self.
Source§

impl TryFrom<ClapArgs> for Args

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: ClapArgs) -> Result<Self, Self::Error>

Performs the conversion.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> Captures<'_> for T
where T: ?Sized,