pub struct ExceptionTableEntry {
pub covered_pc: Range<ProgramCounter>,
pub handler_pc: ProgramCounter,
pub catch_type: Option<ClassRef>,
}Expand description
An entry in the exception table.
Fields§
§covered_pc: Range<ProgramCounter>The half-open range of locations where the exception handler is active.
This corresponds to the JVM class file’s start_pc <= pc < end_pc invariant.
handler_pc: ProgramCounterThe location of the exception handler.
catch_type: Option<ClassRef>The type of the exception to be handled.
Implementations§
Source§impl ExceptionTableEntry
impl ExceptionTableEntry
Sourcepub fn covers(&self, pc: ProgramCounter) -> bool
pub fn covers(&self, pc: ProgramCounter) -> bool
Checks whether the given program counter is covered by this exception handler.
Trait Implementations§
Source§impl Clone for ExceptionTableEntry
impl Clone for ExceptionTableEntry
Source§fn clone(&self) -> ExceptionTableEntry
fn clone(&self) -> ExceptionTableEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Freeze for ExceptionTableEntry
impl RefUnwindSafe for ExceptionTableEntry
impl Send for ExceptionTableEntry
impl Sync for ExceptionTableEntry
impl Unpin for ExceptionTableEntry
impl UnsafeUnpin for ExceptionTableEntry
impl UnwindSafe for ExceptionTableEntry
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more