pub struct Variances<I: Interner> {
pub(crate) interned: I::InternedVariances,
}
Expand description
List of interned elements.
Fields§
§interned: I::InternedVariances
Implementations§
source§impl<I: Interner> Variances<I>
impl<I: Interner> Variances<I>
source§impl<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§
source§impl<I: Interner> HasInterner for Variances<I>
impl<I: Interner> HasInterner for Variances<I>
source§impl<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 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<I: PartialEq + Interner> PartialEq for Variances<I>where
I::InternedVariances: PartialEq,
impl<I: PartialEq + Interner> PartialEq for Variances<I>where
I::InternedVariances: PartialEq,
source§impl<I: PartialOrd + Interner> PartialOrd for Variances<I>where
I::InternedVariances: PartialOrd,
impl<I: PartialOrd + Interner> PartialOrd for Variances<I>where
I::InternedVariances: PartialOrd,
1.0.0 · source§fn 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> StructuralPartialEq for Variances<I>
Auto Trait Implementations§
impl<I> Freeze for Variances<I>
impl<I> RefUnwindSafe for Variances<I>
impl<I> Send for Variances<I>
impl<I> Sync for Variances<I>
impl<I> Unpin for Variances<I>
impl<I> UnwindSafe for Variances<I>
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: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)