Struct noak::writer::MethodWriter
source · pub struct MethodWriter<State: State> { /* private fields */ }
Implementations§
source§impl MethodWriter<AccessFlags>
impl MethodWriter<AccessFlags>
pub fn access_flags( self, flags: AccessFlags, ) -> Result<MethodWriter<Name>, EncodeError>
source§impl MethodWriter<Name>
impl MethodWriter<Name>
pub fn name<I>(self, name: I) -> Result<MethodWriter<Descriptor>, EncodeError>where
I: Insertable<Utf8>,
source§impl MethodWriter<Descriptor>
impl MethodWriter<Descriptor>
pub fn descriptor<I>(
self,
descriptor: I,
) -> Result<MethodWriter<Attributes>, EncodeError>where
I: Insertable<Utf8>,
source§impl MethodWriter<Attributes>
impl MethodWriter<Attributes>
pub fn attributes<F>(self, f: F) -> Result<MethodWriter<End>, EncodeError>where
F: FnOnce(&mut ManyWriter<AttributeWriter<ClassWriter<Methods>, Start>, u16>) -> Result<(), EncodeError>,
Trait Implementations§
Auto Trait Implementations§
impl<State> Freeze for MethodWriter<State>
impl<State> RefUnwindSafe for MethodWriter<State>where
State: RefUnwindSafe,
impl<State> Send for MethodWriter<State>where
State: Send,
impl<State> Sync for MethodWriter<State>where
State: Sync,
impl<State> Unpin for MethodWriter<State>where
State: Unpin,
impl<State> UnwindSafe for MethodWriter<State>where
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