pub enum InterfaceRequirement<S> {
None,
Requirement(StandardRequirement<S>),
}Expand description
One declared interface-standard value: either a requirement or
the explicit none, meaning the target’s headers are not
consumable from that language. Implements the explicit
interface declaration decl_L(t) of spec D6
(docs/design/standard-compatibility/spec.md); D6’s ⊥ (no
declaration) is an absent Option<InterfaceRequirement> at the
use sites.
Variants§
None
The target’s headers are not consumable from this language:
the declared "none" of spec D6, which D9 row 1 maps to the
unsatisfiable requirement
(crate::standard_compatibility::Requirement::Forbidden).
Requirement(StandardRequirement<S>)
Implementations§
Trait Implementations§
Source§impl<S: Clone> Clone for InterfaceRequirement<S>
impl<S: Clone> Clone for InterfaceRequirement<S>
Source§fn clone(&self) -> InterfaceRequirement<S>
fn clone(&self) -> InterfaceRequirement<S>
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<S: Copy> Copy for InterfaceRequirement<S>
Source§impl<S: Debug> Debug for InterfaceRequirement<S>
impl<S: Debug> Debug for InterfaceRequirement<S>
Source§impl<'de, S: Deserialize<'de>> Deserialize<'de> for InterfaceRequirement<S>
impl<'de, S: Deserialize<'de>> Deserialize<'de> for InterfaceRequirement<S>
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
Source§impl<S: Display> Display for InterfaceRequirement<S>
impl<S: Display> Display for InterfaceRequirement<S>
impl<S: Eq> Eq for InterfaceRequirement<S>
Source§impl<S: PartialEq> PartialEq for InterfaceRequirement<S>
impl<S: PartialEq> PartialEq for InterfaceRequirement<S>
Source§fn eq(&self, other: &InterfaceRequirement<S>) -> bool
fn eq(&self, other: &InterfaceRequirement<S>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<S: Serialize> Serialize for InterfaceRequirement<S>
impl<S: Serialize> Serialize for InterfaceRequirement<S>
impl<S: PartialEq> StructuralPartialEq for InterfaceRequirement<S>
Auto Trait Implementations§
impl<S> Freeze for InterfaceRequirement<S>where
S: Freeze,
impl<S> RefUnwindSafe for InterfaceRequirement<S>where
S: RefUnwindSafe,
impl<S> Send for InterfaceRequirement<S>where
S: Send,
impl<S> Sync for InterfaceRequirement<S>where
S: Sync,
impl<S> Unpin for InterfaceRequirement<S>where
S: Unpin,
impl<S> UnsafeUnpin for InterfaceRequirement<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for InterfaceRequirement<S>where
S: UnwindSafe,
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.