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,
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>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
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 more
impl<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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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) -> U where
Self: CastTo<U>,
U: HasInterner,
fn cast<U>(self, interner: U::Interner) -> U where
Self: CastTo<U>,
U: HasInterner,
Cast a value to type U
using CastTo
.
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more