Enum hax_cli_options::ExporterCommand
source · pub enum ExporterCommand {
Backend(BackendOptions),
JSON {
output_file: PathOrDash,
kind: Vec<ExportBodyKind>,
include_extra: bool,
},
}
Variants§
Backend(BackendOptions)
Translate to a backend. The translated modules will be written
under the directory [
JSON
Fields
§
output_file: PathOrDash
Path to the output JSON file, “-” denotes stdout.
§
kind: Vec<ExportBodyKind>
Whether the bodies are exported as THIR, built MIR, const MIR, or a combination. Repeat this option to extract a combination (e.g. [-k thir -k mir-built]).
Export directly as a JSON file
Trait Implementations§
source§impl Clone for ExporterCommand
impl Clone for ExporterCommand
source§fn clone(&self) -> ExporterCommand
fn clone(&self) -> ExporterCommand
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ExporterCommand
impl Debug for ExporterCommand
source§impl<'de> Deserialize<'de> for ExporterCommand
impl<'de> Deserialize<'de> for ExporterCommand
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl FromArgMatches for ExporterCommand
impl FromArgMatches for ExporterCommand
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 JsonSchema for ExporterCommand
impl JsonSchema for ExporterCommand
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moresource§impl NormalizePaths for ExporterCommand
impl NormalizePaths for ExporterCommand
fn normalize_paths(&mut self)
source§impl Serialize for ExporterCommand
impl Serialize for ExporterCommand
source§impl Subcommand for ExporterCommand
impl Subcommand for ExporterCommand
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
source§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Test whether
Self
can parse a specific subcommandAuto Trait Implementations§
impl RefUnwindSafe for ExporterCommand
impl Send for ExporterCommand
impl Sync for ExporterCommand
impl Unpin for ExporterCommand
impl UnwindSafe for ExporterCommand
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