pub type VariableKinds = VariableKinds<Interner>;
Aliased Type§
struct VariableKinds { /* private fields */ }
Implementations
§impl<I> VariableKinds<I>where
I: Interner,
impl<I> VariableKinds<I>where
I: Interner,
pub fn from_fallible<E>(
interner: I,
elements: impl IntoIterator<Item = Result<impl CastTo<VariableKind<I>>, E>>,
) -> Result<VariableKinds<I>, E>
pub fn from_fallible<E>( interner: I, elements: impl IntoIterator<Item = Result<impl CastTo<VariableKind<I>>, E>>, ) -> Result<VariableKinds<I>, 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>>>,
) -> VariableKinds<I>
pub fn from_iter( interner: I, elements: impl IntoIterator<Item = impl CastTo<VariableKind<I>>>, ) -> VariableKinds<I>
Create a sequence from elements
pub fn from1(
interner: I,
element: impl CastTo<VariableKind<I>>,
) -> VariableKinds<I>
pub fn from1( interner: I, element: impl CastTo<VariableKind<I>>, ) -> VariableKinds<I>
Create a sequence from a single element.
§impl<I> VariableKinds<I>where
I: Interner,
impl<I> VariableKinds<I>where
I: Interner,
pub fn inner_debug(&self, interner: I) -> VariableKindsInnerDebug<'_, I>
pub fn inner_debug(&self, interner: I) -> VariableKindsInnerDebug<'_, I>
Helper method for debugging variable kinds.
§impl<I> VariableKinds<I>where
I: Interner,
impl<I> VariableKinds<I>where
I: Interner,
pub fn interned(&self) -> &<I as Interner>::InternedVariableKinds
pub fn interned(&self) -> &<I as Interner>::InternedVariableKinds
Get the interned elements.
pub fn as_slice(&self, interner: I) -> &[VariableKind<I>]
pub fn as_slice(&self, interner: I) -> &[VariableKind<I>]
Returns a slice containing the elements.
pub fn empty(interner: I) -> VariableKinds<I>
pub fn empty(interner: I) -> VariableKinds<I>
Create an empty sequence.
Trait Implementations
§impl<I> CastTo<VariableKinds<I>> for VariableKinds<I>where
I: Interner,
impl<I> CastTo<VariableKinds<I>> for VariableKinds<I>where
I: Interner,
§impl<I> HasInterner for VariableKinds<I>where
I: Interner,
impl<I> HasInterner for VariableKinds<I>where
I: Interner,
§impl<I> Ord for VariableKinds<I>
impl<I> Ord for VariableKinds<I>
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