Struct rustc_typeck::middle::borrowck::move_data::VariantMatchExperimental [-]  [+] [src]

pub struct VariantMatch {
    pub path: MovePathIndex,
    pub base_path: MovePathIndex,
    pub id: u32,
    pub mode: MatchMode,
}

Fields

path

downcast to the variant.

base_path

path being downcast to the variant.

id

id where variant's pattern occurs

mode

says if variant established by move (and why), by copy, or by borrow.

Methods

impl VariantMatch

fn to_string(&self, move_data: &MoveData<'tcx>, tcx: &ctxt<'tcx>) -> String