Struct lib_flutter_rust_bridge_codegen::Opts
source · [−]pub struct Opts {Show 15 fields
pub rust_input_path: String,
pub dart_output_path: String,
pub dart_decl_output_path: Option<String>,
pub c_output_path: Vec<String>,
pub rust_crate_dir: String,
pub rust_output_path: String,
pub class_name: String,
pub dart_format_line_length: i32,
pub skip_add_mod_to_lib: bool,
pub llvm_path: Vec<String>,
pub llvm_compiler_opts: String,
pub manifest_path: String,
pub dart_root: Option<String>,
pub build_runner: bool,
pub block_index: BlockIndex,
}
Fields
rust_input_path: String
dart_output_path: String
dart_decl_output_path: Option<String>
c_output_path: Vec<String>
rust_crate_dir: String
rust_output_path: String
class_name: String
dart_format_line_length: i32
skip_add_mod_to_lib: bool
llvm_path: Vec<String>
llvm_compiler_opts: String
manifest_path: String
dart_root: Option<String>
build_runner: bool
block_index: BlockIndex
Implementations
sourceimpl Opts
impl Opts
pub fn get_ir_file(&self) -> IrFile
pub fn dart_api_class_name(&self) -> String
pub fn dart_api_impl_class_name(&self) -> String
pub fn dart_wire_class_name(&self) -> String
sourcepub fn dart_output_path_name(&self) -> Option<&str>
pub fn dart_output_path_name(&self) -> Option<&str>
Returns None if the path terminates in “..”, or not utf8.
pub fn dart_output_freezed_path(&self) -> Option<String>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Opts
impl Send for Opts
impl Sync for Opts
impl Unpin for Opts
impl UnwindSafe for Opts
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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