pub struct TargetStandards {
pub header_only: bool,
pub gnu_extensions: bool,
pub interface_c: Requirement<CStandard>,
pub interface_cxx: Requirement<CxxStandard>,
}Expand description
One target’s row: the declared interface requirement for each
language (spec D9’s ReqOf, header-only inference applied) plus
the two per-target flags. A row whose requirements are all
unconstrained and whose flags are false serializes as {}.
Fields§
§header_only: boolSpec D6 kind: whether the target is header-only. Never
enters the satisfaction predicate (D11 consumes only the
requirement); carried so index consumers know it without an
archive download.
gnu_extensions: boolThe target’s lowering-time GNU-dialect flag (spec D8, invariant I1). Never participates in compatibility; carried so toolchain-aware tooling can surface per-target buildability.
interface_c: Requirement<CStandard>Declared C interface requirement ReqOf(t, C) (spec D9).
Unconstrained is serialized as an omitted language key.
interface_cxx: Requirement<CxxStandard>Declared C++ interface requirement ReqOf(t, C++) (spec D9).
Trait Implementations§
Source§impl Clone for TargetStandards
impl Clone for TargetStandards
Source§fn clone(&self) -> TargetStandards
fn clone(&self) -> TargetStandards
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for TargetStandards
Source§impl Debug for TargetStandards
impl Debug for TargetStandards
Source§impl Default for TargetStandards
impl Default for TargetStandards
impl Eq for TargetStandards
Source§impl PartialEq for TargetStandards
impl PartialEq for TargetStandards
Source§fn eq(&self, other: &TargetStandards) -> bool
fn eq(&self, other: &TargetStandards) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TargetStandards
Auto Trait Implementations§
impl Freeze for TargetStandards
impl RefUnwindSafe for TargetStandards
impl Send for TargetStandards
impl Sync for TargetStandards
impl Unpin for TargetStandards
impl UnsafeUnpin for TargetStandards
impl UnwindSafe for TargetStandards
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
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
key and return true if they are equal.