Enum rustc::ty::cast::CastTy
[−]
[src]
pub enum CastTy<'tcx> { Int(IntTy), Float, FnPtr, Ptr(&'tcx TypeAndMut<'tcx>), RPtr(&'tcx TypeAndMut<'tcx>), }
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Variants
Int(IntTy)
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Various types that are represented as ints and handled mostly in the same way, merged for easier matching.
Float
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Floating-Point types
FnPtr
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Function Pointers
Ptr(&'tcx TypeAndMut<'tcx>)
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Raw pointers
RPtr(&'tcx TypeAndMut<'tcx>)
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
References
Methods
impl<'tcx> CastTy<'tcx>
[src]
pub fn from_ty(t: Ty<'tcx>) -> Option<CastTy<'tcx>>
[src]
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Trait Implementations
impl<'tcx> Copy for CastTy<'tcx>
[src]
impl<'tcx> Clone for CastTy<'tcx>
[src]
fn clone(&self) -> CastTy<'tcx>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<'tcx> Debug for CastTy<'tcx>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<'tcx> PartialEq for CastTy<'tcx>
[src]
fn eq(&self, __arg_0: &CastTy<'tcx>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &CastTy<'tcx>) -> bool
[src]
This method tests for !=
.