[−][src]Struct rustc_mir::transform::check_consts::qualifs::NeedsDrop

pub struct NeedsDrop;

Constant containing an ADT that implements Drop. This must be ruled out (a) because we cannot run Drop during compile-time as that might not be a const fn, and (b) because implicit promotion would remove side-effects that occur as part of dropping that value.

Trait Implementations

impl Qualif for NeedsDrop[src]

Auto Trait Implementations

impl RefUnwindSafe for NeedsDrop

impl Send for NeedsDrop

impl Sync for NeedsDrop

impl Unpin for NeedsDrop

impl UnwindSafe for NeedsDrop

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]