Enum rustc::mir::CastKind
[−]
[src]
pub enum CastKind { Misc, ReifyFnPointer, ClosureFnPointer, UnsafeFnPointer, Unsize, }
🔬 This is a nightly-only experimental API. (
rustc_private
)Variants
Misc
🔬 This is a nightly-only experimental API. (
rustc_private
)ReifyFnPointer
🔬 This is a nightly-only experimental API. (
rustc_private
)Convert unique, zero-sized type for a fn to fn()
ClosureFnPointer
🔬 This is a nightly-only experimental API. (
rustc_private
)Convert non capturing closure to fn()
UnsafeFnPointer
🔬 This is a nightly-only experimental API. (
rustc_private
)Convert safe fn() to unsafe fn()
Unsize
🔬 This is a nightly-only experimental API. (
rustc_private
)"Unsize" -- convert a thin-or-fat pointer to a fat pointer.
trans 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 Clone for CastKind
[src]
fn clone(&self) -> CastKind
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Copy for CastKind
[src]
impl Debug for CastKind
[src]
impl PartialEq for CastKind
[src]
fn eq(&self, __arg_0: &CastKind) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl Eq for CastKind
[src]
impl Encodable for CastKind
[src]
fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>
🔬 This is a nightly-only experimental API. (rustc_private
)
deprecated in favor of rustc-serialize on crates.io