pub struct EnvBuildFlags {
pub cppflags: Vec<String>,
pub cflags: Vec<String>,
pub cxxflags: Vec<String>,
pub ldflags: Vec<String>,
}Expand description
Typed view of the four conventional C/C++ build-flag environment variables, already shell-split into argv tokens.
Each field preserves the order the user wrote. Empty, missing, and whitespace-only variables produce an empty vector; the planner-side merge then has nothing to append for that bucket.
Fields§
§cppflags: Vec<String>Parsed CPPFLAGS tokens. Applied to both C/C++
compile commands.
cflags: Vec<String>Parsed CFLAGS tokens. Applied only to C compile
commands.
cxxflags: Vec<String>Parsed CXXFLAGS tokens. Applied only to C++ compile
commands.
ldflags: Vec<String>Parsed LDFLAGS tokens. Applied only to link commands.
Implementations§
Trait Implementations§
Source§impl Clone for EnvBuildFlags
impl Clone for EnvBuildFlags
Source§fn clone(&self) -> EnvBuildFlags
fn clone(&self) -> EnvBuildFlags
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EnvBuildFlags
impl Debug for EnvBuildFlags
Source§impl Default for EnvBuildFlags
impl Default for EnvBuildFlags
Source§fn default() -> EnvBuildFlags
fn default() -> EnvBuildFlags
Returns the “default value” for a type. Read more
impl Eq for EnvBuildFlags
Source§impl PartialEq for EnvBuildFlags
impl PartialEq for EnvBuildFlags
Source§fn eq(&self, other: &EnvBuildFlags) -> bool
fn eq(&self, other: &EnvBuildFlags) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for EnvBuildFlags
Auto Trait Implementations§
impl Freeze for EnvBuildFlags
impl RefUnwindSafe for EnvBuildFlags
impl Send for EnvBuildFlags
impl Sync for EnvBuildFlags
impl Unpin for EnvBuildFlags
impl UnsafeUnpin for EnvBuildFlags
impl UnwindSafe for EnvBuildFlags
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