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§
Sourcetype UnwindPoint: 'static
type UnwindPoint: 'static
A type to hold any information necessary to unwind the Unwindable
type to an arbitrary earlier point.
Required Methods§
Sourcefn get_unwind_point(&self) -> Self::UnwindPoint
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.
Sourcefn unwind_to(&mut self, unwind_point: &Self::UnwindPoint)
fn unwind_to(&mut self, unwind_point: &Self::UnwindPoint)
Unwinds the Unwindable
type to the given earlier point.