pub struct StandardRequirement<S> {
pub min: S,
pub max: Option<S>,
}Expand description
One interface standard requirement: the minimum standard the
target’s public headers require from consumers. max is
reserved for future range requirements and is never populated
today, but it stays in the type and every serialized form so the
wire shape does not change when ranges land. This is the
{ min, max } pair of spec D4’s remark
(docs/design/standard-compatibility/spec.md): with max
always absent in v1, a requirement denotes the declared minimum
decl_L(t) = m of spec D6, which D9 row 2 maps to the
compatibility requirement [m]
(crate::standard_compatibility::Requirement::Min).
Fields§
§min: S§max: Option<S>Trait Implementations§
Source§impl<S: Clone> Clone for StandardRequirement<S>
impl<S: Clone> Clone for StandardRequirement<S>
Source§fn clone(&self) -> StandardRequirement<S>
fn clone(&self) -> StandardRequirement<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 StandardRequirement<S>
Source§impl<S: Debug> Debug for StandardRequirement<S>
impl<S: Debug> Debug for StandardRequirement<S>
Source§impl<'de, S> Deserialize<'de> for StandardRequirement<S>where
S: Deserialize<'de>,
impl<'de, S> Deserialize<'de> for StandardRequirement<S>where
S: Deserialize<'de>,
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<S: Eq> Eq for StandardRequirement<S>
Source§impl<S: PartialEq> PartialEq for StandardRequirement<S>
impl<S: PartialEq> PartialEq for StandardRequirement<S>
Source§fn eq(&self, other: &StandardRequirement<S>) -> bool
fn eq(&self, other: &StandardRequirement<S>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<S> Serialize for StandardRequirement<S>where
S: Serialize,
impl<S> Serialize for StandardRequirement<S>where
S: Serialize,
impl<S: PartialEq> StructuralPartialEq for StandardRequirement<S>
Auto Trait Implementations§
impl<S> Freeze for StandardRequirement<S>where
S: Freeze,
impl<S> RefUnwindSafe for StandardRequirement<S>where
S: RefUnwindSafe,
impl<S> Send for StandardRequirement<S>where
S: Send,
impl<S> Sync for StandardRequirement<S>where
S: Sync,
impl<S> Unpin for StandardRequirement<S>where
S: Unpin,
impl<S> UnsafeUnpin for StandardRequirement<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for StandardRequirement<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.