pub enum Commands {
Inspect {
binary: PathBuf,
filter: Option<String>,
output: OutputFormat,
sort_by: SortField,
top: Option<usize>,
min_padding: Option<u64>,
no_color: bool,
cache_line: u32,
pretty: bool,
warn_false_sharing: bool,
include_go_runtime: bool,
},
Diff {
old: PathBuf,
new: PathBuf,
filter: Option<String>,
output: OutputFormat,
cache_line: u32,
fail_on_regression: bool,
include_go_runtime: bool,
},
Check {
binary: PathBuf,
config: PathBuf,
output: OutputFormat,
cache_line: u32,
include_go_runtime: bool,
},
Suggest {
binary: PathBuf,
filter: Option<String>,
output: OutputFormat,
min_savings: Option<u64>,
cache_line: u32,
pretty: bool,
max_align: u64,
sort_by_savings: bool,
no_color: bool,
include_go_runtime: bool,
},
}Variants§
Inspect
Analyze and display struct layouts from a binary
Fields
§
output: OutputFormatOutput format (table, json, sarif)
Diff
Compare struct layouts between two binaries
Fields
§
output: OutputFormatOutput format (table, json, sarif)
Check
Check struct layouts against budget constraints
Fields
§
output: OutputFormatOutput format (table, json, sarif)
Suggest
Suggest optimal field ordering to minimize padding
Fields
§
output: OutputFormatOutput format (table, json, sarif)
Trait Implementations§
Source§impl FromArgMatches for Commands
impl FromArgMatches for Commands
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<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§impl Subcommand for Commands
impl Subcommand for Commands
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Test whether
Self can parse a specific subcommand