Struct chalk_ir::VariableKinds [−][src]
pub struct VariableKinds<I: Interner> { /* fields omitted */ }
Expand description
List of interned elements.
Implementations
impl<I: Interner> VariableKinds<I>
[src]
impl<I: Interner> VariableKinds<I>
[src]pub fn inner_debug<'a>(
&'a self,
interner: &'a I
) -> VariableKindsInnerDebug<'a, I>
[src]
pub fn inner_debug<'a>(
&'a self,
interner: &'a I
) -> VariableKindsInnerDebug<'a, I>
[src]Helper method for debugging variable kinds.
impl<I: Interner> VariableKinds<I>
[src]
impl<I: Interner> VariableKinds<I>
[src]pub fn interned(&self) -> &I::InternedVariableKinds
[src]
pub fn interned(&self) -> &I::InternedVariableKinds
[src]Get the interned elements.
pub fn as_slice(&self, interner: &I) -> &[VariableKind<I>]
[src]
pub fn as_slice(&self, interner: &I) -> &[VariableKind<I>]
[src]Returns a slice containing the elements.
pub fn at(&self, interner: &I, index: usize) -> &VariableKind<I>
[src]
pub fn at(&self, interner: &I, index: usize) -> &VariableKind<I>
[src]Index into the sequence.
pub fn iter(&self, interner: &I) -> Iter<'_, VariableKind<I>>
[src]
pub fn iter(&self, interner: &I) -> Iter<'_, VariableKind<I>>
[src]Get an iterator over the elements of the sequence.
impl<I: Interner> VariableKinds<I>
[src]
impl<I: Interner> VariableKinds<I>
[src]pub fn from_fallible<E>(
interner: &I,
elements: impl IntoIterator<Item = Result<impl CastTo<VariableKind<I>>, E>>
) -> Result<Self, E>
[src]
pub fn from_fallible<E>(
interner: &I,
elements: impl IntoIterator<Item = Result<impl CastTo<VariableKind<I>>, E>>
) -> Result<Self, E>
[src]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
[src]
pub fn from_iter(
interner: &I,
elements: impl IntoIterator<Item = impl CastTo<VariableKind<I>>>
) -> Self
[src]Create a sequence from elements
pub fn from1(interner: &I, element: impl CastTo<VariableKind<I>>) -> Self
[src]
pub fn from1(interner: &I, element: impl CastTo<VariableKind<I>>) -> Self
[src]Create a sequence from a single element.
Trait Implementations
impl<I: Interner> CastTo<VariableKinds<I>> for VariableKinds<I>
[src]
impl<I: Interner> CastTo<VariableKinds<I>> for VariableKinds<I>
[src]fn cast_to(
self,
_interner: &<VariableKinds<I> as HasInterner>::Interner
) -> VariableKinds<I>
[src]
fn cast_to(
self,
_interner: &<VariableKinds<I> as HasInterner>::Interner
) -> VariableKinds<I>
[src]Cast a value to type T
.
impl<I: Clone + Interner> Clone for VariableKinds<I> where
I::InternedVariableKinds: Clone,
[src]
impl<I: Clone + Interner> Clone for VariableKinds<I> where
I::InternedVariableKinds: Clone,
[src]fn clone(&self) -> VariableKinds<I>
[src]
fn clone(&self) -> VariableKinds<I>
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl<I: Interner> HasInterner for VariableKinds<I>
[src]
impl<I: Interner> HasInterner for VariableKinds<I>
[src]type Interner = I
type Interner = I
The interner associated with the type.
impl<I: Hash + Interner> Hash for VariableKinds<I> where
I::InternedVariableKinds: Hash,
[src]
impl<I: Hash + Interner> Hash for VariableKinds<I> where
I::InternedVariableKinds: Hash,
[src]impl<I: Ord + Interner> Ord for VariableKinds<I> where
I::InternedVariableKinds: Ord,
[src]
impl<I: Ord + Interner> Ord for VariableKinds<I> where
I::InternedVariableKinds: Ord,
[src]impl<I: PartialEq + Interner> PartialEq<VariableKinds<I>> for VariableKinds<I> where
I::InternedVariableKinds: PartialEq,
[src]
impl<I: PartialEq + Interner> PartialEq<VariableKinds<I>> for VariableKinds<I> where
I::InternedVariableKinds: PartialEq,
[src]fn eq(&self, other: &VariableKinds<I>) -> bool
[src]
fn eq(&self, other: &VariableKinds<I>) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &VariableKinds<I>) -> bool
[src]
fn ne(&self, other: &VariableKinds<I>) -> bool
[src]This method tests for !=
.
impl<I: PartialOrd + Interner> PartialOrd<VariableKinds<I>> for VariableKinds<I> where
I::InternedVariableKinds: PartialOrd,
[src]
impl<I: PartialOrd + Interner> PartialOrd<VariableKinds<I>> for VariableKinds<I> where
I::InternedVariableKinds: PartialOrd,
[src]fn partial_cmp(&self, other: &VariableKinds<I>) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &VariableKinds<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 VariableKinds<I> where
I::InternedVariableKinds: Copy,
[src]
I::InternedVariableKinds: Copy,
impl<I: Eq + Interner> Eq for VariableKinds<I> where
I::InternedVariableKinds: Eq,
[src]
I::InternedVariableKinds: Eq,
impl<I: Interner> StructuralEq for VariableKinds<I>
[src]
impl<I: Interner> StructuralPartialEq for VariableKinds<I>
[src]
Auto Trait Implementations
impl<I> RefUnwindSafe for VariableKinds<I> where
<I as Interner>::InternedVariableKinds: RefUnwindSafe,
<I as Interner>::InternedVariableKinds: RefUnwindSafe,
impl<I> Send for VariableKinds<I> where
<I as Interner>::InternedVariableKinds: Send,
<I as Interner>::InternedVariableKinds: Send,
impl<I> Sync for VariableKinds<I> where
<I as Interner>::InternedVariableKinds: Sync,
<I as Interner>::InternedVariableKinds: Sync,
impl<I> Unpin for VariableKinds<I> where
<I as Interner>::InternedVariableKinds: Unpin,
<I as Interner>::InternedVariableKinds: Unpin,
impl<I> UnwindSafe for VariableKinds<I> where
<I as Interner>::InternedVariableKinds: UnwindSafe,
<I as Interner>::InternedVariableKinds: 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