Struct BoundVarKinds
pub struct BoundVarKinds(/* private fields */);
Implementations§
§impl BoundVarKinds
impl BoundVarKinds
pub fn ingredient<Db>(db: &Db) -> &IngredientImpl<BoundVarKinds>where
Db: Database + ?Sized,
§impl<'db> BoundVarKinds
impl<'db> BoundVarKinds
pub fn new_<Db_, T0>(db: &'db Db_, inner_: T0) -> BoundVarKindswhere
T0: Lookup<SmallVec<[BoundVarKind; 2]>> + Hash,
Db_: Database + ?Sized,
SmallVec<[BoundVarKind; 2]>: HashEqLike<T0>,
pub fn default_debug_fmt(
this: BoundVarKinds,
f: &mut Formatter<'_>,
) -> Result<(), Error>
pub fn default_debug_fmt( this: BoundVarKinds, f: &mut Formatter<'_>, ) -> Result<(), Error>
Default debug formatting for this struct (may be useful if you define your own Debug
impl)
§impl BoundVarKinds
impl BoundVarKinds
pub fn new_from_iter<'db>( interner: DbInterner<'db>, data: impl IntoIterator<Item = BoundVarKind>, ) -> BoundVarKinds
pub fn inner(&self) -> &SmallVec<[BoundVarKind; 2]>
Trait Implementations§
§impl<'db> ChalkToNextSolver<'db, BoundVarKinds> for VariableKinds<Interner>
impl<'db> ChalkToNextSolver<'db, BoundVarKinds> for VariableKinds<Interner>
fn to_nextsolver(&self, interner: DbInterner<'db>) -> BoundVarKinds
§impl Clone for BoundVarKinds
impl Clone for BoundVarKinds
§fn clone(&self) -> BoundVarKinds
fn clone(&self) -> BoundVarKinds
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for BoundVarKinds
impl Debug for BoundVarKinds
§impl Default for BoundVarKinds
impl Default for BoundVarKinds
§fn default() -> BoundVarKinds
fn default() -> BoundVarKinds
Returns the “default value” for a type. Read more
§impl Hash for BoundVarKinds
impl Hash for BoundVarKinds
§impl IntoIterator for BoundVarKinds
impl IntoIterator for BoundVarKinds
§type Item = BoundVarKind
type Item = BoundVarKind
The type of the elements being iterated over.
§type IntoIter = <BoundVarKinds as SliceLike>::IntoIter
type IntoIter = <BoundVarKinds as SliceLike>::IntoIter
Which kind of iterator are we turning this into?
§fn into_iter(self) -> <BoundVarKinds as IntoIterator>::IntoIter
fn into_iter(self) -> <BoundVarKinds as IntoIterator>::IntoIter
Creates an iterator from a value. Read more
§impl PartialEq for BoundVarKinds
impl PartialEq for BoundVarKinds
§impl SliceLike for BoundVarKinds
impl SliceLike for BoundVarKinds
type Item = BoundVarKind
type IntoIter = <SmallVec<[BoundVarKind; 2]> as IntoIterator>::IntoIter
fn iter(self) -> <BoundVarKinds as SliceLike>::IntoIter
fn as_slice(&self) -> &[<BoundVarKinds as SliceLike>::Item]
fn get(self, idx: usize) -> Option<Self::Item>
fn len(self) -> usize
fn is_empty(self) -> bool
fn contains(self, t: &Self::Item) -> boolwhere
Self::Item: PartialEq,
fn to_vec(self) -> Vec<Self::Item>
fn last(self) -> Option<Self::Item>
fn split_last(&self) -> Option<(&Self::Item, &[Self::Item])>
§impl Update for BoundVarKinds
impl Update for BoundVarKinds
§unsafe fn maybe_update(
old_pointer: *mut BoundVarKinds,
new_value: BoundVarKinds,
) -> bool
unsafe fn maybe_update( old_pointer: *mut BoundVarKinds, new_value: BoundVarKinds, ) -> bool
Returns Read more
impl Copy for BoundVarKinds
impl Eq for BoundVarKinds
impl Send for BoundVarKinds
impl StructuralPartialEq for BoundVarKinds
impl Sync for BoundVarKinds
Auto Trait Implementations§
impl Freeze for BoundVarKinds
impl !RefUnwindSafe for BoundVarKinds
impl Unpin for BoundVarKinds
impl !UnwindSafe for BoundVarKinds
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Cast for T
impl<T> Cast for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T, R> CollectAndApply<T, R> for T
impl<T, R> CollectAndApply<T, R> for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more