[−][src]Enum rustc::mir::ProjectionElem
⚙️ This is an internal compiler API. (rustc_private)
This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.
Variants
Deref⚙️ This is an internal compiler API. (rustc_private)
This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.
Field(Field, T)⚙️ This is an internal compiler API. (rustc_private)
This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.
Index(V)⚙️ This is an internal compiler API. (rustc_private)
This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.
ConstantIndex⚙️ This is an internal compiler API. (rustc_private)
This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.
These indices are generated by slice patterns. Easiest to explain by example:
[X, _, .._, _, _] => { offset: 0, min_length: 4, from_end: false }, [_, X, .._, _, _] => { offset: 1, min_length: 4, from_end: false }, [_, _, .._, X, _] => { offset: 2, min_length: 4, from_end: true }, [_, _, .._, _, X] => { offset: 1, min_length: 4, from_end: true },
Fields of ConstantIndex
offset: u32⚙️ This is an internal compiler API. (rustc_private)
This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.
index or -index (in Python terms), depending on from_end
min_length: u32⚙️ This is an internal compiler API. (rustc_private)
This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.
thing being indexed must be at least this long
from_end: bool⚙️ This is an internal compiler API. (rustc_private)
This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.
counting backwards from end?
Subslice⚙️ This is an internal compiler API. (rustc_private)
This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.
These indices are generated by slice patterns.
slice[from:-to] in Python terms.
Fields of Subslice
from: u32⚙️ This is an internal compiler API. (rustc_private)
This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.
to: u32⚙️ This is an internal compiler API. (rustc_private)
This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.
Downcast(Option<Symbol>, VariantIdx)⚙️ This is an internal compiler API. (rustc_private)
This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.
"Downcast" to a variant of an ADT. Currently, we only introduce this for ADTs with more than one variant. It may be better to just introduce it always, or always for enums.
The included Symbol is the name of the variant, used for printing MIR.
Trait Implementations
impl<V: Clone, T: Clone> Clone for ProjectionElem<V, T>[src]
fn clone(&self) -> ProjectionElem<V, T>[src]
default fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl<V: Ord, T: Ord> Ord for ProjectionElem<V, T>[src]
fn cmp(&self, other: &ProjectionElem<V, T>) -> Ordering[src]
default fn max(self, other: Self) -> Self1.21.0[src]
Compares and returns the maximum of two values. Read more
default fn min(self, other: Self) -> Self1.21.0[src]
Compares and returns the minimum of two values. Read more
default fn clamp(self, min: Self, max: Self) -> Self[src]
clamp)Restrict a value to a certain interval. Read more
impl<V: Eq, T: Eq> Eq for ProjectionElem<V, T>[src]
fn assert_receiver_is_total_eq(&self)[src]
impl<V: PartialOrd, T: PartialOrd> PartialOrd<ProjectionElem<V, T>> for ProjectionElem<V, T>[src]
fn partial_cmp(&self, other: &ProjectionElem<V, T>) -> Option<Ordering>[src]
fn lt(&self, other: &ProjectionElem<V, T>) -> bool[src]
fn le(&self, other: &ProjectionElem<V, T>) -> bool[src]
fn gt(&self, other: &ProjectionElem<V, T>) -> bool[src]
fn ge(&self, other: &ProjectionElem<V, T>) -> bool[src]
impl<V: PartialEq, T: PartialEq> PartialEq<ProjectionElem<V, T>> for ProjectionElem<V, T>[src]
fn eq(&self, other: &ProjectionElem<V, T>) -> bool[src]
fn ne(&self, other: &ProjectionElem<V, T>) -> bool[src]
impl<V: Debug, T: Debug> Debug for ProjectionElem<V, T>[src]
impl<V: Hash, T: Hash> Hash for ProjectionElem<V, T>[src]
fn hash<__HVT: Hasher>(&self, state: &mut __HVT)[src]
default fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher]. Read more
impl<V: Decodable, T: Decodable> Decodable for ProjectionElem<V, T>[src]
impl<V: Encodable, T: Encodable> Encodable for ProjectionElem<V, T>[src]
impl<'__ctx, V, T> HashStable<StableHashingContext<'__ctx>> for ProjectionElem<V, T> where
T: HashStable<StableHashingContext<'__ctx>>,
V: HashStable<StableHashingContext<'__ctx>>, [src]
T: HashStable<StableHashingContext<'__ctx>>,
V: HashStable<StableHashingContext<'__ctx>>,
fn hash_stable<__W: StableHasherResult>(
&self,
__hcx: &mut StableHashingContext<'__ctx>,
__hasher: &mut StableHasher<__W>
)[src]
&self,
__hcx: &mut StableHashingContext<'__ctx>,
__hasher: &mut StableHasher<__W>
)
Auto Trait Implementations
impl<V, T> !Send for ProjectionElem<V, T>
impl<V, T> !Sync for ProjectionElem<V, T>
Blanket Implementations
impl<T> MaybeResult for T[src]
impl<'tcx, T> Subst for T where
T: TypeFoldable<'tcx>, [src]
T: TypeFoldable<'tcx>,
fn subst_spanned(
&Self,
TyCtxt<'a, 'gcx, 'tcx>,
&[Kind<'tcx>],
Option<Span>
) -> T[src]
&Self,
TyCtxt<'a, 'gcx, 'tcx>,
&[Kind<'tcx>],
Option<Span>
) -> T
fn subst<'a, 'gcx>(
&self,
tcx: TyCtxt<'a, 'gcx, 'tcx>,
substs: &[Kind<'tcx>]
) -> Self[src]
&self,
tcx: TyCtxt<'a, 'gcx, 'tcx>,
substs: &[Kind<'tcx>]
) -> Self
⚙️ This is an internal compiler API. (rustc_private)
This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.
impl<'a, T> Captures for T where
T: ?Sized, [src]
T: ?Sized,
impl<T, U> Into for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
impl<T> From for T[src]
impl<T, U> TryFrom for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T> Borrow for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Decodable for T where
T: UseSpecializedDecodable, [src]
T: UseSpecializedDecodable,
impl<T> Encodable for T where
T: UseSpecializedEncodable + ?Sized, [src]
T: UseSpecializedEncodable + ?Sized,
impl<E> SpecializationError for E[src]
default fn not_found<S, T>(
trait_name: &'static str,
method_name: &'static str
) -> E where
T: ?Sized, [src]
trait_name: &'static str,
method_name: &'static str
) -> E where
T: ?Sized,
impl<T> Erased for T[src]
impl<T> Send for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Sync for T where
T: ?Sized, [src]
T: ?Sized,