pub struct RawOpts {
Show 14 fields pub rust_input: Vec<String>, pub dart_output: Vec<String>, pub dart_decl_output: Option<String>, pub c_output: Option<Vec<String>>, pub rust_crate_dir: Option<Vec<String>>, pub rust_output: Option<Vec<String>>, pub class_name: Option<Vec<String>>, pub dart_format_line_length: Option<i32>, pub skip_add_mod_to_lib: bool, pub llvm_path: Option<Vec<String>>, pub llvm_compiler_opts: Option<String>, pub dart_root: Option<Vec<String>>, pub no_build_runner: bool, pub verbose: bool,
}

Fields

rust_input: Vec<String>

Path of input Rust code

dart_output: Vec<String>

Path of output generated Dart code

dart_decl_output: Option<String>

If provided, generated Dart declaration code to this separate file

c_output: Option<Vec<String>>

Path of output generated C header

rust_crate_dir: Option<Vec<String>>

Crate directory for your Rust project

rust_output: Option<Vec<String>>

Path of output generated Rust code

class_name: Option<Vec<String>>

Generated class name

dart_format_line_length: Option<i32>

Line length for dart formatting

skip_add_mod_to_lib: bool

Skip automatically adding mod bridge_generated; to lib.rs

llvm_path: Option<Vec<String>>

Path to the installed LLVM

llvm_compiler_opts: Option<String>

LLVM compiler opts

dart_root: Option<Vec<String>>

Path to root of Dart project, otherwise inferred from –dart-output

no_build_runner: bool

Skip running build_runner even when codegen-capable code is detected

verbose: bool

Show debug messages.

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Returns clap::App corresponding to the struct.

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. Read more

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. Read more

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. Read more

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 more

Gets the struct from any iterator such as a Vec of your making. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.