Enum rustc::mir::repr::CastKind
[−]
[src]
pub enum CastKind {
Misc,
ReifyFnPointer,
UnsafeFnPointer,
Unsize,
}Unstable (
rustc_private)Variants
MiscUnstable (
rustc_private)ReifyFnPointerUnstable (
rustc_private)Convert unique, zero-sized type for a fn to fn()
UnsafeFnPointerUnstable (
rustc_private)Convert safe fn() to unsafe fn()
UnsizeUnstable (
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
Derived Implementations
impl Decodable for CastKind[src]
impl Encodable for CastKind[src]
impl Eq 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) -> bool1.0.0
This method tests for !=.
impl Debug for CastKind[src]
impl Copy for CastKind[src]
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