pub struct Variances<I: Interner> { /* private fields */ }
Expand description
List of interned elements.
Implementations
sourceimpl<I: Interner> Variances<I>
impl<I: Interner> Variances<I>
sourceimpl<I: Interner> Variances<I>
impl<I: Interner> Variances<I>
sourcepub fn from_fallible<E>(
interner: I,
variances: impl IntoIterator<Item = Result<Variance, E>>
) -> Result<Self, E>
pub fn from_fallible<E>(
interner: I,
variances: impl IntoIterator<Item = Result<Variance, E>>
) -> Result<Self, E>
Tries to create a list of canonical variable kinds using an iterator.
sourcepub fn from_iter(
interner: I,
variances: impl IntoIterator<Item = Variance>
) -> Self
pub fn from_iter(
interner: I,
variances: impl IntoIterator<Item = Variance>
) -> Self
Creates a list of canonical variable kinds using an iterator.
Trait Implementations
sourceimpl<I: Interner> HasInterner for Variances<I>
impl<I: Interner> HasInterner for Variances<I>
type Interner = I
type Interner = I
The interner associated with the type.
sourceimpl<I: Ord + Interner> Ord for Variances<I>where
I::InternedVariances: Ord,
impl<I: Ord + Interner> Ord for Variances<I>where
I::InternedVariances: Ord,
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl<I: PartialEq + Interner> PartialEq<Variances<I>> for Variances<I>where
I::InternedVariances: PartialEq,
impl<I: PartialEq + Interner> PartialEq<Variances<I>> for Variances<I>where
I::InternedVariances: PartialEq,
sourceimpl<I: PartialOrd + Interner> PartialOrd<Variances<I>> for Variances<I>where
I::InternedVariances: PartialOrd,
impl<I: PartialOrd + Interner> PartialOrd<Variances<I>> for Variances<I>where
I::InternedVariances: PartialOrd,
sourcefn partial_cmp(&self, other: &Variances<I>) -> Option<Ordering>
fn partial_cmp(&self, other: &Variances<I>) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<I: Copy + Interner> Copy for Variances<I>where
I::InternedVariances: Copy,
impl<I: Eq + Interner> Eq for Variances<I>where
I::InternedVariances: Eq,
impl<I: Interner> StructuralEq for Variances<I>
impl<I: Interner> StructuralPartialEq for Variances<I>
Auto Trait Implementations
impl<I> RefUnwindSafe for Variances<I>where
<I as Interner>::InternedVariances: RefUnwindSafe,
impl<I> Send for Variances<I>where
<I as Interner>::InternedVariances: Send,
impl<I> Sync for Variances<I>where
<I as Interner>::InternedVariances: Sync,
impl<I> Unpin for Variances<I>where
<I as Interner>::InternedVariances: Unpin,
impl<I> UnwindSafe for Variances<I>where
<I as Interner>::InternedVariances: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Cast for T
impl<T> Cast for T
sourcefn cast<U>(self, interner: U::Interner) -> Uwhere
Self: CastTo<U>,
U: HasInterner,
fn cast<U>(self, interner: U::Interner) -> Uwhere
Self: CastTo<U>,
U: HasInterner,
Cast a value to type
U
using CastTo
.