pub struct LanguageStandardsSummary {
pub c: Option<ResolvedStandard<CStandard>>,
pub cxx: Option<ResolvedStandard<CxxStandard>>,
pub targets: BTreeMap<String, TargetStandardsSummary>,
}Expand description
Per-package language-standard summary carried by
BuildConfiguration: package-level effective standards plus the
effective values for every target. Values (not provenance) feed
the fingerprint; the whole struct feeds cabin metadata /
cabin explain build-config. Absent entries mean the language
has no declared standard anywhere for that scope.
Fields§
§c: Option<ResolvedStandard<CStandard>>§cxx: Option<ResolvedStandard<CxxStandard>>§targets: BTreeMap<String, TargetStandardsSummary>Implementations§
Source§impl LanguageStandardsSummary
impl LanguageStandardsSummary
Sourcepub fn from_package(package: &Package) -> Self
pub fn from_package(package: &Package) -> Self
Compute the summary from a package’s declarations.
Sourcepub fn fingerprint_lines(&self) -> Vec<String>
pub fn fingerprint_lines(&self) -> Vec<String>
Stable line serialization for the build-configuration
fingerprint. Values only - provenance must not move the
fingerprint, and absent standards (and the default
gnu-extensions = false) contribute no line.
Trait Implementations§
Source§impl Clone for LanguageStandardsSummary
impl Clone for LanguageStandardsSummary
Source§fn clone(&self) -> LanguageStandardsSummary
fn clone(&self) -> LanguageStandardsSummary
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 LanguageStandardsSummary
impl Debug for LanguageStandardsSummary
Source§impl Default for LanguageStandardsSummary
impl Default for LanguageStandardsSummary
Source§fn default() -> LanguageStandardsSummary
fn default() -> LanguageStandardsSummary
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LanguageStandardsSummary
impl<'de> Deserialize<'de> for LanguageStandardsSummary
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for LanguageStandardsSummary
Source§impl PartialEq for LanguageStandardsSummary
impl PartialEq for LanguageStandardsSummary
Source§fn eq(&self, other: &LanguageStandardsSummary) -> bool
fn eq(&self, other: &LanguageStandardsSummary) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for LanguageStandardsSummary
impl Serialize for LanguageStandardsSummary
impl StructuralPartialEq for LanguageStandardsSummary
Auto Trait Implementations§
impl Freeze for LanguageStandardsSummary
impl RefUnwindSafe for LanguageStandardsSummary
impl Send for LanguageStandardsSummary
impl Sync for LanguageStandardsSummary
impl Unpin for LanguageStandardsSummary
impl UnsafeUnpin for LanguageStandardsSummary
impl UnwindSafe for LanguageStandardsSummary
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.