Enum ProjectionElem
pub enum ProjectionElem<'db, V>where
V: PartialEq,{
Deref,
Field(Either<FieldId, TupleFieldId>),
ClosureField(usize),
Index(V),
ConstantIndex {
offset: u64,
from_end: bool,
},
Subslice {
from: u64,
to: u64,
},
OpaqueCast(Ty<'db>),
}Variants§
Deref
Field(Either<FieldId, TupleFieldId>)
ClosureField(usize)
Index(V)
ConstantIndex
Subslice
OpaqueCast(Ty<'db>)
Implementations§
§impl<'db, V> ProjectionElem<'db, V>where
V: PartialEq,
impl<'db, V> ProjectionElem<'db, V>where
V: PartialEq,
pub fn projected_ty( &self, infcx: &InferCtxt<'db>, env: ParamEnv<'db>, base: Ty<'db>, closure_field: impl FnOnce(InternedClosureId, GenericArgs<'db>, usize) -> Ty<'db>, krate: Crate, ) -> Ty<'db>
Trait Implementations§
§impl<'db, V> Clone for ProjectionElem<'db, V>
impl<'db, V> Clone for ProjectionElem<'db, V>
§fn clone(&self) -> ProjectionElem<'db, V>
fn clone(&self) -> ProjectionElem<'db, V>
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<'db, V> Debug for ProjectionElem<'db, V>
impl<'db, V> Debug for ProjectionElem<'db, V>
§impl<'db, V> Hash for ProjectionElem<'db, V>
impl<'db, V> Hash for ProjectionElem<'db, V>
§impl<'db, V> PartialEq for ProjectionElem<'db, V>where
V: PartialEq,
impl<'db, V> PartialEq for ProjectionElem<'db, V>where
V: PartialEq,
§impl<'db, V> Update for ProjectionElem<'db, V>where
V: PartialEq,
impl<'db, V> Update for ProjectionElem<'db, V>where
V: PartialEq,
§unsafe fn maybe_update(
old_pointer_: *mut ProjectionElem<'db, V>,
new_value_: ProjectionElem<'db, V>,
) -> bool
unsafe fn maybe_update( old_pointer_: *mut ProjectionElem<'db, V>, new_value_: ProjectionElem<'db, V>, ) -> bool
Returns Read more
impl<'db, V> Eq for ProjectionElem<'db, V>
impl<'db, V> StructuralPartialEq for ProjectionElem<'db, V>where
V: PartialEq,
Auto Trait Implementations§
impl<'db, V> Freeze for ProjectionElem<'db, V>where
V: Freeze,
impl<'db, V> RefUnwindSafe for ProjectionElem<'db, V>where
V: RefUnwindSafe,
impl<'db, V> Send for ProjectionElem<'db, V>where
V: Send,
impl<'db, V> Sync for ProjectionElem<'db, V>where
V: Sync,
impl<'db, V> Unpin for ProjectionElem<'db, V>where
V: Unpin,
impl<'db, V> UnwindSafe for ProjectionElem<'db, V>where
V: UnwindSafe,
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
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
Checks if this value is equivalent to the given key. Read more
§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