Enum cargo_zigbuild::zig::Zig
source · pub enum Zig {
Cc {
args: Vec<String>,
},
Cxx {
args: Vec<String>,
},
Ar {
args: Vec<String>,
},
Ranlib {
args: Vec<String>,
},
}
Expand description
Zig linker wrapper
Variants§
Implementations§
source§impl Zig
impl Zig
sourcepub fn execute_compiler(&self, cmd: &str, cmd_args: &[String]) -> Result<()>
pub fn execute_compiler(&self, cmd: &str, cmd_args: &[String]) -> Result<()>
Execute zig cc/c++ command
sourcepub fn execute_tool(&self, cmd: &str, cmd_args: &[String]) -> Result<()>
pub fn execute_tool(&self, cmd: &str, cmd_args: &[String]) -> Result<()>
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<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>
Assign values from
ArgMatches
to self
.source§fn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
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 Freeze for Zig
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)