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]
impl<'tcx> CastTy<'tcx>
pub fn from_ty(t: Ty<'tcx>) -> Option<CastTy<'tcx>>
[src]
pub fn from_ty(t: Ty<'tcx>) -> Option<CastTy<'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?
Trait Implementations
impl<'tcx> Copy for CastTy<'tcx>
[src]
impl<'tcx> Copy for CastTy<'tcx>
impl<'tcx> Clone for CastTy<'tcx>
[src]
impl<'tcx> Clone for CastTy<'tcx>
fn clone(&self) -> CastTy<'tcx>
[src]
fn clone(&self) -> CastTy<'tcx>
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)
Performs copy-assignment from source
. Read more
impl<'tcx> Debug for CastTy<'tcx>
[src]
impl<'tcx> Debug for CastTy<'tcx>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<'tcx> PartialEq for CastTy<'tcx>
[src]
impl<'tcx> PartialEq for CastTy<'tcx>
fn eq(&self, other: &CastTy<'tcx>) -> bool
[src]
fn eq(&self, other: &CastTy<'tcx>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &CastTy<'tcx>) -> bool
[src]
fn ne(&self, other: &CastTy<'tcx>) -> bool
This method tests for !=
.
impl<'tcx> Eq for CastTy<'tcx>
[src]
impl<'tcx> Eq for CastTy<'tcx>
fn assert_receiver_is_total_eq(&self)
[src]
fn assert_receiver_is_total_eq(&self)