Struct noak::writer::attributes::code::ExceptionWriter
source · pub struct ExceptionWriter<Ctx, State: State> { /* private fields */ }
Implementations§
source§impl<Ctx: EncoderContext> ExceptionWriter<Ctx, Start>
impl<Ctx: EncoderContext> ExceptionWriter<Ctx, Start>
pub fn start( self, label: LabelRef, ) -> Result<ExceptionWriter<Ctx, Length>, EncodeError>
source§impl<Ctx: EncoderContext> ExceptionWriter<Ctx, Length>
impl<Ctx: EncoderContext> ExceptionWriter<Ctx, Length>
pub fn end( self, label: LabelRef, ) -> Result<ExceptionWriter<Ctx, Handler>, EncodeError>
source§impl<Ctx: EncoderContext> ExceptionWriter<Ctx, Handler>
impl<Ctx: EncoderContext> ExceptionWriter<Ctx, Handler>
pub fn handler( self, label: LabelRef, ) -> Result<ExceptionWriter<Ctx, CatchType>, EncodeError>
source§impl<Ctx: EncoderContext> ExceptionWriter<Ctx, CatchType>
impl<Ctx: EncoderContext> ExceptionWriter<Ctx, CatchType>
pub fn catch_type<I>(
self,
catch_type: I,
) -> Result<ExceptionWriter<Ctx, End>, EncodeError>where
I: Insertable<Class>,
Trait Implementations§
Auto Trait Implementations§
impl<Ctx, State> Freeze for ExceptionWriter<Ctx, State>where
Ctx: Freeze,
impl<Ctx, State> RefUnwindSafe for ExceptionWriter<Ctx, State>where
Ctx: RefUnwindSafe,
State: RefUnwindSafe,
impl<Ctx, State> Send for ExceptionWriter<Ctx, State>
impl<Ctx, State> Sync for ExceptionWriter<Ctx, State>
impl<Ctx, State> Unpin for ExceptionWriter<Ctx, State>
impl<Ctx, State> UnwindSafe for ExceptionWriter<Ctx, State>where
Ctx: UnwindSafe,
State: UnwindSafe,
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