pub enum PanicLocation {
PanicVar {
panic_var: VariableId,
statement_location: StatementLocation,
},
PanicTuple {
tuple_var: VariableId,
statement_location: StatementLocation,
},
}
Expand description
Location where a Panic
is first available.
Variants§
PanicVar
The Panic
value is at a variable.
PanicTuple
The Panic
value is the first value in a tuple.
Trait Implementations§
source§impl Clone for PanicLocation
impl Clone for PanicLocation
source§fn clone(&self) -> PanicLocation
fn clone(&self) -> PanicLocation
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 moreAuto Trait Implementations§
impl RefUnwindSafe for PanicLocation
impl Send for PanicLocation
impl Sync for PanicLocation
impl Unpin for PanicLocation
impl UnwindSafe for PanicLocation
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