Enum cargo_lambda_build::Zig
source · pub enum Zig {
Cc {
args: Vec<String, Global>,
},
Cxx {
args: Vec<String, Global>,
},
Ar {
args: Vec<String, Global>,
},
Ranlib {
args: Vec<String, Global>,
},
}Expand description
Zig linker wrapper
Variants§
Implementations§
source§impl Zig
impl Zig
sourcepub fn execute_compiler(
&self,
cmd: &str,
cmd_args: &[String]
) -> Result<(), Error>
pub fn execute_compiler( &self, cmd: &str, cmd_args: &[String] ) -> Result<(), Error>
Execute zig cc/c++ command
sourcepub fn execute_tool(&self, cmd: &str, cmd_args: &[String]) -> Result<(), Error>
pub fn execute_tool(&self, cmd: &str, cmd_args: &[String]) -> Result<(), Error>
Execute zig ar/ranlib command
Trait Implementations§
source§impl FromArgMatches for Zig
impl FromArgMatches for Zig
source§fn from_arg_matches(
__clap_arg_matches: &ArgMatches
) -> Result<Zig, Error<RichFormatter>>
fn from_arg_matches( __clap_arg_matches: &ArgMatches ) -> Result<Zig, Error<RichFormatter>>
source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches
) -> Result<Zig, Error<RichFormatter>>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches ) -> Result<Zig, Error<RichFormatter>>
source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches
) -> Result<(), Error<RichFormatter>>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches ) -> Result<(), Error<RichFormatter>>
Assign values from
ArgMatches to self.source§fn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches
) -> Result<(), Error<RichFormatter>>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches ) -> Result<(), Error<RichFormatter>>
Assign values from
ArgMatches to self.source§impl Subcommand for Zig
impl Subcommand for Zig
source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
source§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Test whether
Self can parse a specific subcommandAuto Trait Implementations§
impl RefUnwindSafe for Zig
impl Send for Zig
impl Sync for Zig
impl Unpin for Zig
impl UnwindSafe for Zig
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more