Trait Unwindable

Source
pub trait Unwindable {
    type UnwindPoint: 'static;

    // Required methods
    fn get_unwind_point(&self) -> Self::UnwindPoint;
    fn unwind_to(&mut self, unwind_point: &Self::UnwindPoint);
}
Expand description

Represents a stack-like object that can unwind back to an arbitrary earlier point.

Required Associated Types§

Source

type UnwindPoint: 'static

A type to hold any information necessary to unwind the Unwindable type to an arbitrary earlier point.

Required Methods§

Source

fn get_unwind_point(&self) -> Self::UnwindPoint

Gets a new unwind point that can later be used to unwind the Unwindable type to the current point.

Source

fn unwind_to(&mut self, unwind_point: &Self::UnwindPoint)

Unwinds the Unwindable type to the given earlier point.

Implementors§