[−][src]Enum rustc_mir::util::elaborate_drops::Unwind

pub enum Unwind {
    To(BasicBlock),
    InCleanup,
}

Describes if unwinding is necessary and where to unwind to if a panic occurs.

Variants

To(BasicBlock)

Unwind to this block.

InCleanup

Already in an unwind path, any panic will cause an abort.

Implementations

impl Unwind[src]

pub(in util::elaborate_drops) fn is_cleanup(
    self
) -> bool
[src]

pub(in util::elaborate_drops) fn into_option(
    self
) -> Option<BasicBlock>
[src]

pub(in util::elaborate_drops) fn map<F>(
    self,
    f: F
) -> Self where
    F: FnOnce(BasicBlock) -> BasicBlock, 
[src]

Trait Implementations

impl Clone for Unwind[src]

impl Copy for Unwind[src]

impl Debug for Unwind[src]

Auto Trait Implementations

impl RefUnwindSafe for Unwind

impl Send for Unwind

impl Sync for Unwind

impl Unpin for Unwind

impl UnwindSafe for Unwind

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> ToOwned for T where
    T: Clone, 
[src]

type Owned = T

The resulting type after obtaining ownership.

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]