Struct noak::writer::attributes::EnclosingMethodWriter
source · pub struct EnclosingMethodWriter<Ctx, State: State> { /* private fields */ }
Implementations§
source§impl<Ctx: EncoderContext> EnclosingMethodWriter<Ctx, Class>
impl<Ctx: EncoderContext> EnclosingMethodWriter<Ctx, Class>
pub fn class<I>(
self,
class: I,
) -> Result<EnclosingMethodWriter<Ctx, Method>, EncodeError>where
I: Insertable<Class>,
source§impl<Ctx: EncoderContext> EnclosingMethodWriter<Ctx, Method>
impl<Ctx: EncoderContext> EnclosingMethodWriter<Ctx, Method>
pub fn method<I>(
self,
class: Option<I>,
) -> Result<EnclosingMethodWriter<Ctx, End>, EncodeError>where
I: Insertable<NameAndType>,
Trait Implementations§
Auto Trait Implementations§
impl<Ctx, State> Freeze for EnclosingMethodWriter<Ctx, State>where
Ctx: Freeze,
impl<Ctx, State> RefUnwindSafe for EnclosingMethodWriter<Ctx, State>where
Ctx: RefUnwindSafe,
State: RefUnwindSafe,
impl<Ctx, State> Send for EnclosingMethodWriter<Ctx, State>
impl<Ctx, State> Sync for EnclosingMethodWriter<Ctx, State>
impl<Ctx, State> Unpin for EnclosingMethodWriter<Ctx, State>
impl<Ctx, State> UnwindSafe for EnclosingMethodWriter<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