Struct lib_flutter_rust_bridge_codegen::RawOpts
source · pub struct RawOpts {Show 18 fields
pub rust_input: Vec<String>,
pub dart_output: Vec<String>,
pub dart_decl_output: Option<String>,
pub c_output: Option<Vec<String>>,
pub extra_c_output_path: 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: u32,
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,
pub wasm: bool,
pub inline_rust: bool,
pub skip_deps_check: 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>>
Output path (including file name) of generated C header, each field corresponding to that of rust-input
extra_c_output_path: Option<Vec<String>>
Extra output path (excluding file name) of generated C header
rust_crate_dir: Option<Vec<String>>
Crate directory for your Rust project
rust_output: Option<Vec<String>>
Output path of generated Rust code
class_name: Option<Vec<String>>
Generated class name
dart_format_line_length: u32
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-required code is detected
verbose: bool
Show debug messages.
wasm: bool
Enable WASM module generation. Requires: –dart-decl-output
inline_rust: bool
Inline declaration of Rust bridge modules
skip_deps_check: bool
Skip dependencies check.
Trait Implementations§
source§impl CommandFactory for RawOpts
impl CommandFactory for RawOpts
source§fn into_app_for_update<'b>() -> Command<'b>
fn into_app_for_update<'b>() -> Command<'b>
CommandFactory::command_for_update
source§impl<'de> Deserialize<'de> for RawOpts
impl<'de> Deserialize<'de> for RawOpts
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>,
source§impl FromArgMatches for RawOpts
impl FromArgMatches for RawOpts
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>
ArgMatches
to self
.source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches ) -> Result<(), Error>
ArgMatches
to self
.source§impl Parser for RawOpts
impl Parser for RawOpts
source§fn parse_from<I, T>(itr: I) -> Selfwhere
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn parse_from<I, T>(itr: I) -> Selfwhere I: IntoIterator<Item = T>, T: Into<OsString> + Clone,
source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,
source§fn update_from<I, T>(&mut self, itr: I)where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn update_from<I, T>(&mut self, itr: I)where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,
source§fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,
source§impl PartialEq<RawOpts> for RawOpts
impl PartialEq<RawOpts> for RawOpts
impl Eq for RawOpts
impl StructuralEq for RawOpts
impl StructuralPartialEq for RawOpts
Auto Trait Implementations§
impl RefUnwindSafe for RawOpts
impl Send for RawOpts
impl Sync for RawOpts
impl Unpin for RawOpts
impl UnwindSafe for RawOpts
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.