pub struct RequestedStandards {
pub c: BTreeSet<CStandard>,
pub cxx: BTreeSet<CxxStandard>,
}Expand description
The set of language standards a build’s compiles request, per language. A language’s set is empty iff no compile of that language exists, which is the signal the C-compiler checks key on.
The authoritative form is requested_standards_of, derived
from a planned crate::BuildGraph so it covers exactly the compiles
the build will run - no more (an unbuilt sibling target must not
gate validation) and no less. collect_requested_standards
is the pre-plan package-level approximation used only where a
value is needed before planning (the MSVC /external:I
fallback decision).
Fields§
§c: BTreeSet<CStandard>§cxx: BTreeSet<CxxStandard>Implementations§
Source§impl RequestedStandards
impl RequestedStandards
Sourcepub fn has_c_sources(&self) -> bool
pub fn has_c_sources(&self) -> bool
Whether any selected target compiles a .c source - the
signal that scopes the C-compiler checks.
Trait Implementations§
Source§impl Clone for RequestedStandards
impl Clone for RequestedStandards
Source§fn clone(&self) -> RequestedStandards
fn clone(&self) -> RequestedStandards
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 RequestedStandards
impl Debug for RequestedStandards
Source§impl Default for RequestedStandards
impl Default for RequestedStandards
Source§fn default() -> RequestedStandards
fn default() -> RequestedStandards
Returns the “default value” for a type. Read more
impl Eq for RequestedStandards
Source§impl PartialEq for RequestedStandards
impl PartialEq for RequestedStandards
Source§fn eq(&self, other: &RequestedStandards) -> bool
fn eq(&self, other: &RequestedStandards) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RequestedStandards
Auto Trait Implementations§
impl Freeze for RequestedStandards
impl RefUnwindSafe for RequestedStandards
impl Send for RequestedStandards
impl Sync for RequestedStandards
impl Unpin for RequestedStandards
impl UnsafeUnpin for RequestedStandards
impl UnwindSafe for RequestedStandards
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.