Enum rustc::mir::CastKind [−][src]
pub enum CastKind { Misc, ReifyFnPointer, ClosureFnPointer, UnsafeFnPointer, Unsize, }
🔬 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
Misc
🔬 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?
ReifyFnPointer
🔬 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?
Convert unique, zero-sized type for a fn to fn()
ClosureFnPointer
🔬 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?
Convert non capturing closure to fn()
UnsafeFnPointer
🔬 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?
Convert safe fn() to unsafe fn()
Unsize
🔬 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?
"Unsize" -- convert a thin-or-fat pointer to a fat pointer.
codegen must figure out the details once full monomorphization
is known. For example, this could be used to cast from a
&[i32;N]
to a &[i32]
, or a Box<T>
to a Box<Trait>
(presuming T: Trait
).
Trait Implementations
impl<'a, 'tcx> HashStable<StableHashingContext<'a>> for CastKind
[src]
impl<'a, 'tcx> HashStable<StableHashingContext<'a>> for CastKind
fn hash_stable<W: StableHasherResult>(
&self,
__ctx: &mut StableHashingContext<'a>,
__hasher: &mut StableHasher<W>
)
[src]
fn hash_stable<W: StableHasherResult>(
&self,
__ctx: &mut StableHashingContext<'a>,
__hasher: &mut StableHasher<W>
)
🔬 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?
impl Clone for CastKind
[src]
impl Clone for CastKind
fn clone(&self) -> CastKind
[src]
fn clone(&self) -> CastKind
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 Copy for CastKind
[src]
impl Copy for CastKind
impl Debug for CastKind
[src]
impl Debug for CastKind
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 PartialEq for CastKind
[src]
impl PartialEq for CastKind
fn eq(&self, other: &CastKind) -> bool
[src]
fn eq(&self, other: &CastKind) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl Eq for CastKind
[src]
impl Eq for CastKind
fn assert_receiver_is_total_eq(&self)
[src]
fn assert_receiver_is_total_eq(&self)
impl Encodable for CastKind
[src]
impl Encodable for CastKind
fn encode<__S: Encoder>(&self, s: &mut __S) -> Result<(), __S::Error>
[src]
fn encode<__S: Encoder>(&self, s: &mut __S) -> Result<(), __S::Error>
🔬 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?
impl Decodable for CastKind
[src]
impl Decodable for CastKind