pub struct LanguageStandardSettings {
pub c_standard: Option<StandardDeclaration<CStandard>>,
pub cxx_standard: Option<StandardDeclaration<CxxStandard>>,
pub interface_c_standard: Option<StandardDeclaration<CStandard>>,
pub interface_cxx_standard: Option<StandardDeclaration<CxxStandard>>,
}Expand description
The four manifest fields, shared by [package] and
[target.<name>] (c-standard / cxx-standard /
interface-c-standard / interface-cxx-standard). At
[package] level each field may also be the
{ workspace = true } opt-in marker; target-level fields are
always Declared (the parser rejects markers there).
Fields§
§c_standard: Option<StandardDeclaration<CStandard>>§cxx_standard: Option<StandardDeclaration<CxxStandard>>§interface_c_standard: Option<StandardDeclaration<CStandard>>§interface_cxx_standard: Option<StandardDeclaration<CxxStandard>>Implementations§
Source§impl LanguageStandardSettings
impl LanguageStandardSettings
pub fn is_empty(&self) -> bool
Sourcepub fn c_standard_value(&self) -> Option<CStandard>
pub fn c_standard_value(&self) -> Option<CStandard>
Resolved C implementation standard, when declared or inherited.
Sourcepub fn cxx_standard_value(&self) -> Option<CxxStandard>
pub fn cxx_standard_value(&self) -> Option<CxxStandard>
Resolved C++ implementation standard, when declared or inherited.
Sourcepub fn interface_c_standard_value(&self) -> Option<CStandard>
pub fn interface_c_standard_value(&self) -> Option<CStandard>
Resolved C interface standard, when declared or inherited.
Sourcepub fn interface_cxx_standard_value(&self) -> Option<CxxStandard>
pub fn interface_cxx_standard_value(&self) -> Option<CxxStandard>
Resolved C++ interface standard, when declared or inherited.
Sourcepub fn workspace_marker_field(&self) -> Option<&'static str>
pub fn workspace_marker_field(&self) -> Option<&'static str>
First field carrying the unresolved { workspace = true }
marker, for error reporting.
Trait Implementations§
Source§impl Clone for LanguageStandardSettings
impl Clone for LanguageStandardSettings
Source§fn clone(&self) -> LanguageStandardSettings
fn clone(&self) -> LanguageStandardSettings
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 moreimpl Copy for LanguageStandardSettings
Source§impl Debug for LanguageStandardSettings
impl Debug for LanguageStandardSettings
Source§impl Default for LanguageStandardSettings
impl Default for LanguageStandardSettings
Source§fn default() -> LanguageStandardSettings
fn default() -> LanguageStandardSettings
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LanguageStandardSettings
impl<'de> Deserialize<'de> for LanguageStandardSettings
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 LanguageStandardSettings
Source§impl PartialEq for LanguageStandardSettings
impl PartialEq for LanguageStandardSettings
Source§fn eq(&self, other: &LanguageStandardSettings) -> bool
fn eq(&self, other: &LanguageStandardSettings) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for LanguageStandardSettings
impl Serialize for LanguageStandardSettings
impl StructuralPartialEq for LanguageStandardSettings
Auto Trait Implementations§
impl Freeze for LanguageStandardSettings
impl RefUnwindSafe for LanguageStandardSettings
impl Send for LanguageStandardSettings
impl Sync for LanguageStandardSettings
impl Unpin for LanguageStandardSettings
impl UnsafeUnpin for LanguageStandardSettings
impl UnwindSafe for LanguageStandardSettings
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.