Struct chalk_ir::VariableKinds [−][src]
pub struct VariableKinds<I: Interner> { /* fields omitted */ }
Expand description
List of interned elements.
Implementations
Helper method for debugging variable kinds.
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<VariableKind<I>>, E>>
) -> Result<Self, E>
pub fn from_fallible<E>(
interner: &I,
elements: impl IntoIterator<Item = Result<impl CastTo<VariableKind<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<VariableKind<I>>>
) -> Self
pub fn from_iter(
interner: &I,
elements: impl IntoIterator<Item = impl CastTo<VariableKind<I>>>
) -> Self
Create a sequence from elements
Create a sequence from a single element.
Trait Implementations
Cast a value to type T
.
type Interner = I
type Interner = I
The interner associated with the type.
impl<I: PartialEq + Interner> PartialEq<VariableKinds<I>> for VariableKinds<I> where
I::InternedVariableKinds: PartialEq,
impl<I: PartialEq + Interner> PartialEq<VariableKinds<I>> for VariableKinds<I> where
I::InternedVariableKinds: 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<VariableKinds<I>> for VariableKinds<I> where
I::InternedVariableKinds: PartialOrd,
impl<I: PartialOrd + Interner> PartialOrd<VariableKinds<I>> for VariableKinds<I> where
I::InternedVariableKinds: 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
Auto Trait Implementations
impl<I> RefUnwindSafe for VariableKinds<I> where
<I as Interner>::InternedVariableKinds: RefUnwindSafe,
impl<I> Send for VariableKinds<I> where
<I as Interner>::InternedVariableKinds: Send,
impl<I> Sync for VariableKinds<I> where
<I as Interner>::InternedVariableKinds: Sync,
impl<I> Unpin for VariableKinds<I> where
<I as Interner>::InternedVariableKinds: Unpin,
impl<I> UnwindSafe for VariableKinds<I> where
<I as Interner>::InternedVariableKinds: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Cast a value to type U
using CastTo
.