Struct lib_flutter_rust_bridge_codegen::RawOpts
source · [−]pub struct RawOpts {Show 17 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: 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 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
sourceimpl CommandFactory for RawOpts
impl CommandFactory for RawOpts
sourcefn into_app_for_update<'b>() -> Command<'b>
fn into_app_for_update<'b>() -> Command<'b>
Deprecated, replaced with
CommandFactory::command_for_update
sourcefn command_for_update<'help>() -> App<'help>
fn command_for_update<'help>() -> App<'help>
sourceimpl<'de> Deserialize<'de> for RawOpts
impl<'de> Deserialize<'de> for RawOpts
sourcefn 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
sourceimpl FromArgMatches for RawOpts
impl FromArgMatches for RawOpts
sourcefn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
sourcefn 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>
sourcefn 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
.sourcefn 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>
Assign values from
ArgMatches
to self
.sourceimpl Parser for RawOpts
impl Parser for RawOpts
sourcefn 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,
Parse from iterator, exit on error
sourcefn 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,
Parse from iterator, return Err on error.
sourcefn 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,
Update from iterator, exit on error
sourcefn 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,
Update from iterator, return Err on error.
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<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,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.