pub enum ReqOfSource {
DeclaredNone,
Declared,
HeaderOnlyInference,
CompiledNoDeclaration,
CrossLanguageDefault,
}Expand description
Spec D9: which row of the declaration-to-requirement table
produced a ReqOf value. Provenance-tracking callers (the
effective-requirement composition of D10) record this alongside
the requirement so a diagnostic can say why a target imposes
what it imposes; the rows are the routing of D9, so this enum is
derived here and nowhere else.
Variants§
DeclaredNone
Row 1: the explicit interface declaration "none".
Declared
Row 2: an explicit declared interface minimum.
HeaderOnlyInference
Row 3: header-only inference from the implementation standard.
CompiledNoDeclaration
Row 4: a compiled target without an interface declaration imposes no constraint.
CrossLanguageDefault
Rows 5-6: the cross-language default - permissive
(unconstrained) toward C++, strict (forbidden) toward C.
Trait Implementations§
Source§impl Clone for ReqOfSource
impl Clone for ReqOfSource
Source§fn clone(&self) -> ReqOfSource
fn clone(&self) -> ReqOfSource
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 ReqOfSource
Source§impl Debug for ReqOfSource
impl Debug for ReqOfSource
impl Eq for ReqOfSource
Source§impl PartialEq for ReqOfSource
impl PartialEq for ReqOfSource
Source§fn eq(&self, other: &ReqOfSource) -> bool
fn eq(&self, other: &ReqOfSource) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ReqOfSource
Auto Trait Implementations§
impl Freeze for ReqOfSource
impl RefUnwindSafe for ReqOfSource
impl Send for ReqOfSource
impl Sync for ReqOfSource
impl Unpin for ReqOfSource
impl UnsafeUnpin for ReqOfSource
impl UnwindSafe for ReqOfSource
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.