[−][src]Struct rustc_mir::transform::check_consts::validation::Qualifs

pub struct Qualifs<'mir, 'tcx> {
    has_mut_interior: Option<ResultsCursor<'mir, 'tcx, FlowSensitiveAnalysis<'mir, 'mir, 'tcx, HasMutInterior>>>,
    needs_drop: Option<ResultsCursor<'mir, 'tcx, FlowSensitiveAnalysis<'mir, 'mir, 'tcx, NeedsDrop>>>,
    indirectly_mutable: Option<ResultsCursor<'mir, 'tcx, MaybeMutBorrowedLocals<'mir, 'tcx>>>,
}

Fields

has_mut_interior: Option<ResultsCursor<'mir, 'tcx, FlowSensitiveAnalysis<'mir, 'mir, 'tcx, HasMutInterior>>>needs_drop: Option<ResultsCursor<'mir, 'tcx, FlowSensitiveAnalysis<'mir, 'mir, 'tcx, NeedsDrop>>>indirectly_mutable: Option<ResultsCursor<'mir, 'tcx, MaybeMutBorrowedLocals<'mir, 'tcx>>>

Implementations

impl<'mir, 'tcx> Qualifs<'mir, 'tcx>[src]

pub fn indirectly_mutable(
    &mut self,
    ccx: &'mir ConstCx<'mir, 'tcx>,
    local: Local,
    location: Location
) -> bool
[src]

pub fn needs_drop(
    &mut self,
    ccx: &'mir ConstCx<'mir, 'tcx>,
    local: Local,
    location: Location
) -> bool
[src]

Returns true if local is NeedsDrop at the given Location.

Only updates the cursor if absolutely necessary

pub fn has_mut_interior(
    &mut self,
    ccx: &'mir ConstCx<'mir, 'tcx>,
    local: Local,
    location: Location
) -> bool
[src]

Returns true if local is HasMutInterior at the given Location.

Only updates the cursor if absolutely necessary.

pub(in transform::check_consts::validation) fn in_return_place(
    &mut self,
    ccx: &'mir ConstCx<'mir, 'tcx>,
    error_occured: Option<ErrorReported>
) -> ConstQualifs
[src]

Trait Implementations

impl<'mir, 'tcx> Default for Qualifs<'mir, 'tcx>[src]

Auto Trait Implementations

impl<'mir, 'tcx> !RefUnwindSafe for Qualifs<'mir, 'tcx>

impl<'mir, 'tcx> !Send for Qualifs<'mir, 'tcx>

impl<'mir, 'tcx> !Sync for Qualifs<'mir, 'tcx>

impl<'mir, 'tcx> Unpin for Qualifs<'mir, 'tcx> where
    'tcx: 'mir, 

impl<'mir, 'tcx> !UnwindSafe for Qualifs<'mir, 'tcx>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized, 
[src]

impl<T> Borrow<T> for T where
    T: ?Sized, 
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> WithConstness for T[src]