Struct chalk_ir::Variances [−][src]
pub struct Variances<I: Interner> { /* fields omitted */ }
Expand description
List of interned elements.
Implementations
impl<I: Interner> Variances<I>
[src]
impl<I: Interner> Variances<I>
[src]impl<I: Interner> Variances<I>
[src]
impl<I: Interner> Variances<I>
[src]pub fn from_fallible<E>(
interner: &I,
variances: impl IntoIterator<Item = Result<Variance, E>>
) -> Result<Self, E>
[src]
pub fn from_fallible<E>(
interner: &I,
variances: impl IntoIterator<Item = Result<Variance, E>>
) -> Result<Self, E>
[src]Tries to create a list of canonical variable kinds using an iterator.
pub fn from_iter(
interner: &I,
variances: impl IntoIterator<Item = Variance>
) -> Self
[src]
pub fn from_iter(
interner: &I,
variances: impl IntoIterator<Item = Variance>
) -> Self
[src]Creates a list of canonical variable kinds using an iterator.
Trait Implementations
impl<I: Interner> HasInterner for Variances<I>
[src]
impl<I: Interner> HasInterner for Variances<I>
[src]type Interner = I
type Interner = I
The interner associated with the type.
impl<I: Ord + Interner> Ord for Variances<I> where
I::InternedVariances: Ord,
[src]
impl<I: Ord + Interner> Ord for Variances<I> where
I::InternedVariances: Ord,
[src]impl<I: PartialEq + Interner> PartialEq<Variances<I>> for Variances<I> where
I::InternedVariances: PartialEq,
[src]
impl<I: PartialEq + Interner> PartialEq<Variances<I>> for Variances<I> where
I::InternedVariances: PartialEq,
[src]impl<I: PartialOrd + Interner> PartialOrd<Variances<I>> for Variances<I> where
I::InternedVariances: PartialOrd,
[src]
impl<I: PartialOrd + Interner> PartialOrd<Variances<I>> for Variances<I> where
I::InternedVariances: PartialOrd,
[src]fn partial_cmp(&self, other: &Variances<I>) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &Variances<I>) -> Option<Ordering>
[src]This method returns an ordering between self
and other
values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]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,
[src]
I::InternedVariances: Copy,
impl<I: Eq + Interner> Eq for Variances<I> where
I::InternedVariances: Eq,
[src]
I::InternedVariances: Eq,
impl<I: Interner> StructuralEq for Variances<I>
[src]
impl<I: Interner> StructuralPartialEq for Variances<I>
[src]
Auto Trait Implementations
impl<I> RefUnwindSafe for Variances<I> where
<I as Interner>::InternedVariances: RefUnwindSafe,
<I as Interner>::InternedVariances: RefUnwindSafe,
impl<I> Send for Variances<I> where
<I as Interner>::InternedVariances: Send,
<I as Interner>::InternedVariances: Send,
impl<I> Sync for Variances<I> where
<I as Interner>::InternedVariances: Sync,
<I as Interner>::InternedVariances: Sync,
impl<I> Unpin for Variances<I> where
<I as Interner>::InternedVariances: Unpin,
<I as Interner>::InternedVariances: Unpin,
impl<I> UnwindSafe for Variances<I> where
<I as Interner>::InternedVariances: UnwindSafe,
<I as Interner>::InternedVariances: UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Cast for T
[src]
impl<T> Cast for T
[src]fn cast<U>(self, interner: &U::Interner) -> U where
Self: CastTo<U>,
U: HasInterner,
[src]
fn cast<U>(self, interner: &U::Interner) -> U where
Self: CastTo<U>,
U: HasInterner,
[src]Cast a value to type U
using CastTo
.
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more