pub enum PanicLocation {
PanicVar {
statement_location: StatementLocation,
},
PanicMatch {
match_block_id: BlockId,
target_block_id: BlockId,
},
}
Expand description
Location where a Panic
is first available.
Variants§
PanicVar
Fields
§
statement_location: StatementLocation
The Panic
value is at a variable created by a StructConstruct at statement_location
.
PanicMatch
The Panic
is inside a PanicResult::Err that was create by a match at match_block_id
.
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