pub enum PanicState {
EndsWithPanic,
Otherwise,
}
Expand description
A state saved for each position in the back analysis. Used to determine if this flow is guaranteed to end in a panic.
Variants§
Trait Implementations§
source§impl AuxCombine for PanicState
impl AuxCombine for PanicState
source§impl Clone for PanicState
impl Clone for PanicState
source§fn clone(&self) -> PanicState
fn clone(&self) -> PanicState
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Default for PanicState
impl Default for PanicState
source§fn default() -> PanicState
fn default() -> PanicState
Returns the “default value” for a type. Read more
source§impl<'a> DemandReporter<Id<Variable>, PanicState> for BorrowChecker<'a>
impl<'a> DemandReporter<Id<Variable>, PanicState> for BorrowChecker<'a>
type IntroducePosition = Option<DropPosition>
type UsePosition = LocationId
fn drop_aux( &mut self, opt_drop_position: Option<DropPosition>, var_id: VariableId, panic_state: PanicState )
fn dup( &mut self, position: LocationId, var_id: VariableId, next_usage_position: LocationId )
fn drop(&mut self, _position: Self::IntroducePosition, _var: Var)
fn last_use(&mut self, _position: Self::UsePosition, _var: Var)
fn unused_mapped_var(&mut self, _var: Var)
impl Copy for PanicState
Auto Trait Implementations§
impl RefUnwindSafe for PanicState
impl Send for PanicState
impl Sync for PanicState
impl Unpin for PanicState
impl UnwindSafe for PanicState
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more