Struct noak::writer::MethodWriter
source · [−]pub struct MethodWriter<State: State> { /* private fields */ }
Implementations
sourceimpl MethodWriter<AccessFlags>
impl MethodWriter<AccessFlags>
pub fn access_flags(
self,
flags: AccessFlags
) -> Result<MethodWriter<Name>, EncodeError>
sourceimpl MethodWriter<Name>
impl MethodWriter<Name>
pub fn name<I>(self, name: I) -> Result<MethodWriter<Descriptor>, EncodeError> where
I: Insertable<Utf8>,
sourceimpl MethodWriter<Descriptor>
impl MethodWriter<Descriptor>
pub fn descriptor<I>(
self,
descriptor: I
) -> Result<MethodWriter<Attributes>, EncodeError> where
I: Insertable<Utf8>,
sourceimpl 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> 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more