Struct noak::writer::attributes::code::CodeWriter
source · pub struct CodeWriter<Ctx, State: State> { /* private fields */ }
Implementations§
source§impl<Ctx: EncoderContext> CodeWriter<Ctx, MaxStack>
impl<Ctx: EncoderContext> CodeWriter<Ctx, MaxStack>
pub fn max_stack( self, max_stack: u16 ) -> Result<CodeWriter<Ctx, MaxLocals>, EncodeError>
source§impl<Ctx: EncoderContext> CodeWriter<Ctx, MaxLocals>
impl<Ctx: EncoderContext> CodeWriter<Ctx, MaxLocals>
pub fn max_locals( self, max_locals: u16 ) -> Result<CodeWriter<Ctx, Instructions>, EncodeError>
source§impl<Ctx: EncoderContext> CodeWriter<Ctx, Instructions>
impl<Ctx: EncoderContext> CodeWriter<Ctx, Instructions>
pub fn instructions<F>( self, f: F ) -> Result<CodeWriter<Ctx, ExceptionTable>, EncodeError>
source§impl<Ctx: EncoderContext> CodeWriter<Ctx, ExceptionTable>
impl<Ctx: EncoderContext> CodeWriter<Ctx, ExceptionTable>
pub fn exceptions<F>( self, f: F ) -> Result<CodeWriter<Ctx, Attributes>, EncodeError>
source§impl<Ctx: EncoderContext> CodeWriter<Ctx, Attributes>
impl<Ctx: EncoderContext> CodeWriter<Ctx, Attributes>
pub fn attributes<F>(self, f: F) -> Result<CodeWriter<Ctx, End>, EncodeError>where
F: FnOnce(&mut ManyWriter<AttributeWriter<CodeWriter<Ctx, Attributes>, Start>, u16>) -> Result<(), EncodeError>,
source§impl<Ctx: EncoderContext, State: State> CodeWriter<Ctx, State>
impl<Ctx: EncoderContext, State: State> CodeWriter<Ctx, State>
Trait Implementations§
source§impl<Ctx, State: State> Debug for CodeWriter<Ctx, State>
impl<Ctx, State: State> Debug for CodeWriter<Ctx, State>
source§impl<Ctx: EncoderContext, State: State> EncoderContext for CodeWriter<Ctx, State>
impl<Ctx: EncoderContext, State: State> EncoderContext for CodeWriter<Ctx, State>
fn insert_constant<I: Into<Item>>( &mut self, item: I ) -> Result<Index<I>, EncodeError>
Auto Trait Implementations§
impl<Ctx, State> Freeze for CodeWriter<Ctx, State>where
State: Sealed,
Ctx: Freeze,
impl<Ctx, State> RefUnwindSafe for CodeWriter<Ctx, State>where
State: Sealed + RefUnwindSafe,
Ctx: RefUnwindSafe,
impl<Ctx, State> Send for CodeWriter<Ctx, State>
impl<Ctx, State> Sync for CodeWriter<Ctx, State>
impl<Ctx, State> Unpin for CodeWriter<Ctx, State>
impl<Ctx, State> UnwindSafe for CodeWriter<Ctx, State>where
State: Sealed + UnwindSafe,
Ctx: 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