pub struct DependencyAttributes {
pub kind: DependencyKind,
pub impl_c: Option<CStandard>,
pub impl_cxx: Option<CxxStandard>,
pub decl_c: Option<InterfaceRequirement<CStandard>>,
pub decl_cxx: Option<InterfaceRequirement<CxxStandard>>,
}Expand description
Spec D6: the resolved attributes of a dependency target, as
produced by the manifest layer (precedence and inheritance
already applied). Per D6’s population contract, impl_* is
Some exactly when the target itself implements the language - a
package-level implementation default alone never populates it.
Fields§
§kind: DependencyKindSpec D6: kind(t).
impl_c: Option<CStandard>Spec D6: impl_C(t); None is ⊥ (the target does not
implement C).
impl_cxx: Option<CxxStandard>Spec D6: impl_C++(t); None is ⊥.
decl_c: Option<InterfaceRequirement<CStandard>>Spec D6: decl_C(t); None is ⊥ (no explicit interface
declaration), Some(InterfaceRequirement::None) the declared
"none", and Some(InterfaceRequirement::Requirement(..)) a
declared minimum.
decl_cxx: Option<InterfaceRequirement<CxxStandard>>Spec D6: decl_C++(t).
Trait Implementations§
Source§impl Clone for DependencyAttributes
impl Clone for DependencyAttributes
Source§fn clone(&self) -> DependencyAttributes
fn clone(&self) -> DependencyAttributes
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 DependencyAttributes
Source§impl Debug for DependencyAttributes
impl Debug for DependencyAttributes
impl Eq for DependencyAttributes
Source§impl PartialEq for DependencyAttributes
impl PartialEq for DependencyAttributes
Source§fn eq(&self, other: &DependencyAttributes) -> bool
fn eq(&self, other: &DependencyAttributes) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DependencyAttributes
Auto Trait Implementations§
impl Freeze for DependencyAttributes
impl RefUnwindSafe for DependencyAttributes
impl Send for DependencyAttributes
impl Sync for DependencyAttributes
impl Unpin for DependencyAttributes
impl UnsafeUnpin for DependencyAttributes
impl UnwindSafe for DependencyAttributes
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.