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>Expand description
Type of the discriminant being switched on
otherwise_bb: BasicBlockExpand description
The basic block that the otherwise branch points to
targets_with_values: Vec<(u128, BasicBlock)>Expand description
Target along with the value being branched from. Otherwise is not included
discr_source_info: SourceInfodiscr_used_in_switch: Place<'tcx>Expand description
The place of the discriminant used in the switch
place_of_adt_discr_read: Place<'tcx>Expand description
The place of the adt that has its discriminant read
type_adt_matched_on: Ty<'tcx>Expand description
The type of the adt that has its discriminant read
Trait Implementations
impl<'tcx> Clone for SwitchDiscriminantInfo<'tcx>[src]
impl<'tcx> Clone for SwitchDiscriminantInfo<'tcx>[src]fn clone(&self) -> SwitchDiscriminantInfo<'tcx>[src]
fn clone(&self) -> SwitchDiscriminantInfo<'tcx>[src]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)1.0.0[src]Performs copy-assignment from source. Read more
Auto Trait Implementations
impl<'tcx> !RefUnwindSafe for SwitchDiscriminantInfo<'tcx>
impl<'tcx> !Send for SwitchDiscriminantInfo<'tcx>
impl<'tcx> !Sync for SwitchDiscriminantInfo<'tcx>
impl<'tcx> Unpin for SwitchDiscriminantInfo<'tcx>
impl<'tcx> !UnwindSafe for SwitchDiscriminantInfo<'tcx>
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> WithConstness for T[src]
impl<T> WithConstness for T[src]