pub struct ExceptionHandler {
pub start_pc: u16,
pub end_pc: u16,
pub handler_pc: u16,
pub catch_type: Option<CpIndex>,
}Expand description
One entry of a Code exception table.
See JVMS §4.7.3.
Fields§
§start_pc: u16§end_pc: u16§handler_pc: u16§catch_type: Option<CpIndex>Implementations§
Source§impl ExceptionHandler
impl ExceptionHandler
Sourcepub fn try_read(
constant_pool: &ConstantPool<'_>,
cursor: &mut Cursor<'_>,
) -> Result<Self>
pub fn try_read( constant_pool: &ConstantPool<'_>, cursor: &mut Cursor<'_>, ) -> Result<Self>
Reads one handler; catch_type of 0 means “catch anything”.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ExceptionHandler
impl RefUnwindSafe for ExceptionHandler
impl Send for ExceptionHandler
impl Sync for ExceptionHandler
impl Unpin for ExceptionHandler
impl UnsafeUnpin for ExceptionHandler
impl UnwindSafe for ExceptionHandler
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