Struct rustc_mir_transform::early_otherwise_branch::SwitchDiscriminantInfo[][src]

struct SwitchDiscriminantInfo<'tcx> {
    discr_ty: Ty<'tcx>,
    otherwise_bb: BasicBlock,
    targets_with_values: Vec<(u128, BasicBlock)>,
    discr_source_info: SourceInfo,
    discr_used_in_switch: Place<'tcx>,
    place_of_adt_discr_read: Place<'tcx>,
    type_adt_matched_on: Ty<'tcx>,
}

Fields

discr_ty: Ty<'tcx>

Type of the discriminant being switched on

otherwise_bb: BasicBlock

The basic block that the otherwise branch points to

targets_with_values: Vec<(u128, BasicBlock)>

Target along with the value being branched from. Otherwise is not included

discr_source_info: SourceInfodiscr_used_in_switch: Place<'tcx>

The place of the discriminant used in the switch

place_of_adt_discr_read: Place<'tcx>

The place of the adt that has its discriminant read

type_adt_matched_on: Ty<'tcx>

The type of the adt that has its discriminant read

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Layout

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.

Size: 88 bytes