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 Args for RawOpts

source§

fn augment_args<'b>(__clap_app: Command<'b>) -> Command<'b>

Append to Command so it can instantiate Self. Read more
source§

fn augment_args_for_update<'b>(__clap_app: Command<'b>) -> Command<'b>

Append to Command so it can update self. Read more
source§

impl CommandFactory for RawOpts

source§

fn into_app<'b>() -> Command<'b>

Deprecated, replaced with CommandFactory::command
source§

fn into_app_for_update<'b>() -> Command<'b>

Deprecated, replaced with CommandFactory::command_for_update
source§

fn command<'help>() -> App<'help>

Build a Command that can instantiate Self. Read more
source§

fn command_for_update<'help>() -> App<'help>

Build a Command that can update self. Read more
source§

impl Debug for RawOpts

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for RawOpts

source§

fn default() -> RawOpts

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

impl<'de> Deserialize<'de> for RawOpts

source§

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 RawOpts

source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
source§

fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches ) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
source§

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( &mut self, __clap_arg_matches: &mut ArgMatches ) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

impl Parser for RawOpts

source§

fn parse() -> Self

Parse from std::env::args_os(), exit on error
source§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
source§

fn parse_from<I, T>(itr: I) -> Selfwhere I: IntoIterator<Item = T>, T: Into<OsString> + Clone,

Parse from iterator, exit on error
source§

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.
source§

fn update_from<I, T>(&mut self, itr: I)where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,

Update from iterator, exit on error
source§

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.
source§

impl PartialEq<RawOpts> for RawOpts

source§

fn eq(&self, other: &RawOpts) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Eq for RawOpts

source§

impl StructuralEq for RawOpts

source§

impl StructuralPartialEq for RawOpts

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for Twhere T: for<'de> Deserialize<'de>,