Struct chalk_ir::CanonicalVarKinds [−][src]
pub struct CanonicalVarKinds<I: Interner> { /* fields omitted */ }
Expand description
List of interned elements.
Implementations
Get the interned elements.
Returns a slice containing the elements.
Index into the sequence.
Get an iterator over the elements of the sequence.
pub fn from_fallible<E>(
interner: &I,
elements: impl IntoIterator<Item = Result<impl CastTo<CanonicalVarKind<I>>, E>>
) -> Result<Self, E>
pub fn from_fallible<E>(
interner: &I,
elements: impl IntoIterator<Item = Result<impl CastTo<CanonicalVarKind<I>>, E>>
) -> Result<Self, E>
Tries to create a sequence using an iterator of element-like things.
pub fn from_iter(
interner: &I,
elements: impl IntoIterator<Item = impl CastTo<CanonicalVarKind<I>>>
) -> Self
pub fn from_iter(
interner: &I,
elements: impl IntoIterator<Item = impl CastTo<CanonicalVarKind<I>>>
) -> Self
Create a sequence from elements
Create a sequence from a single element.
Trait Implementations
fn cast_to(
self,
_interner: &<CanonicalVarKinds<I> as HasInterner>::Interner
) -> CanonicalVarKinds<I>
fn cast_to(
self,
_interner: &<CanonicalVarKinds<I> as HasInterner>::Interner
) -> CanonicalVarKinds<I>
Cast a value to type T
.
impl<I: Clone + Interner> Clone for CanonicalVarKinds<I> where
I::InternedCanonicalVarKinds: Clone,
impl<I: Clone + Interner> Clone for CanonicalVarKinds<I> where
I::InternedCanonicalVarKinds: Clone,
type Interner = I
type Interner = I
The interner associated with the type.
impl<I: Hash + Interner> Hash for CanonicalVarKinds<I> where
I::InternedCanonicalVarKinds: Hash,
impl<I: Hash + Interner> Hash for CanonicalVarKinds<I> where
I::InternedCanonicalVarKinds: Hash,
impl<I: PartialEq + Interner> PartialEq<CanonicalVarKinds<I>> for CanonicalVarKinds<I> where
I::InternedCanonicalVarKinds: PartialEq,
impl<I: PartialEq + Interner> PartialEq<CanonicalVarKinds<I>> for CanonicalVarKinds<I> where
I::InternedCanonicalVarKinds: PartialEq,
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
impl<I: PartialOrd + Interner> PartialOrd<CanonicalVarKinds<I>> for CanonicalVarKinds<I> where
I::InternedCanonicalVarKinds: PartialOrd,
impl<I: PartialOrd + Interner> PartialOrd<CanonicalVarKinds<I>> for CanonicalVarKinds<I> where
I::InternedCanonicalVarKinds: PartialOrd,
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
impl<I: Copy + Interner> Copy for CanonicalVarKinds<I> where
I::InternedCanonicalVarKinds: Copy,
Auto Trait Implementations
impl<I> RefUnwindSafe for CanonicalVarKinds<I> where
<I as Interner>::InternedCanonicalVarKinds: RefUnwindSafe,
impl<I> Send for CanonicalVarKinds<I> where
<I as Interner>::InternedCanonicalVarKinds: Send,
impl<I> Sync for CanonicalVarKinds<I> where
<I as Interner>::InternedCanonicalVarKinds: Sync,
impl<I> Unpin for CanonicalVarKinds<I> where
<I as Interner>::InternedCanonicalVarKinds: Unpin,
impl<I> UnwindSafe for CanonicalVarKinds<I> where
<I as Interner>::InternedCanonicalVarKinds: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Cast a value to type U
using CastTo
.