Struct noak::writer::attributes::AttributeWriter
source · [−]pub struct AttributeWriter<Ctx, State: State> { /* private fields */ }
Implementations
sourceimpl<Ctx: EncoderContext> AttributeWriter<CodeWriter<Ctx, Attributes>, Start>
impl<Ctx: EncoderContext> AttributeWriter<CodeWriter<Ctx, Attributes>, Start>
pub fn line_number_table<F>(
self,
f: F
) -> Result<AttributeWriter<CodeWriter<Ctx, Attributes>, End>, EncodeError> where
F: for<'g> FnOnce(&mut ManyWriter<LineNumberWriter<Ctx, Start>, u16>) -> Result<(), EncodeError>,
sourceimpl<Ctx: EncoderContext> AttributeWriter<CodeWriter<Ctx, Attributes>, Start>
impl<Ctx: EncoderContext> AttributeWriter<CodeWriter<Ctx, Attributes>, Start>
pub fn local_variable_table<F>(
self,
f: F
) -> Result<AttributeWriter<CodeWriter<Ctx, Attributes>, End>, EncodeError> where
F: for<'g> FnOnce(&mut ManyWriter<LocalVariableWriter<Ctx, Start>, u16>) -> Result<(), EncodeError>,
sourceimpl<Ctx: EncoderContext> AttributeWriter<CodeWriter<Ctx, Attributes>, Start>
impl<Ctx: EncoderContext> AttributeWriter<CodeWriter<Ctx, Attributes>, Start>
pub fn local_variable_type_table<F>(
self,
f: F
) -> Result<AttributeWriter<CodeWriter<Ctx, Attributes>, End>, EncodeError> where
F: for<'g> FnOnce(&mut ManyWriter<LocalVariableTypeWriter<Ctx, Start>, u16>) -> Result<(), EncodeError>,
sourceimpl<Ctx: EncoderContext> AttributeWriter<CodeWriter<Ctx, Attributes>, Start>
impl<Ctx: EncoderContext> AttributeWriter<CodeWriter<Ctx, Attributes>, Start>
pub fn stack_map_table<F>(
self,
f: F
) -> Result<AttributeWriter<CodeWriter<Ctx, Attributes>, End>, EncodeError> where
F: FnOnce(&mut StackMapTableWriter<Ctx>) -> Result<(), EncodeError>,
sourceimpl<Ctx: EncoderContext> AttributeWriter<Ctx, Start>
impl<Ctx: EncoderContext> AttributeWriter<Ctx, Start>
pub fn code<F>(self, f: F) -> Result<AttributeWriter<Ctx, End>, EncodeError> where
F: FnOnce(CodeWriter<Ctx, MaxStack>) -> Result<CodeWriter<Ctx, End>, EncodeError>,
sourceimpl<Ctx: EncoderContext> AttributeWriter<Ctx, Start>
impl<Ctx: EncoderContext> AttributeWriter<Ctx, Start>
pub fn source_file<I>(
self,
file_name: I
) -> Result<AttributeWriter<Ctx, End>, EncodeError> where
I: Insertable<Utf8>,
pub fn source_debug_extension<I>(
self,
debug_extension: I
) -> Result<AttributeWriter<Ctx, End>, EncodeError> where
I: Into<MString>,
pub fn synthetic(self) -> Result<AttributeWriter<Ctx, End>, EncodeError>
pub fn deprecated(self) -> Result<AttributeWriter<Ctx, End>, EncodeError>
pub fn signature<I>(
self,
signature: I
) -> Result<AttributeWriter<Ctx, End>, EncodeError> where
I: Insertable<Utf8>,
sourceimpl<Ctx: EncoderContext> AttributeWriter<Ctx, Start>
impl<Ctx: EncoderContext> AttributeWriter<Ctx, Start>
pub fn enclosing_method<F>(
self,
f: F
) -> Result<AttributeWriter<Ctx, End>, EncodeError> where
F: FnOnce(&mut ManyWriter<EnclosingMethodWriter<Ctx, Class>, u16>) -> Result<(), EncodeError>,
sourceimpl<Ctx: EncoderContext> AttributeWriter<Ctx, Start>
impl<Ctx: EncoderContext> AttributeWriter<Ctx, Start>
pub fn constant_value<I>(
self,
value: I
) -> Result<AttributeWriter<Ctx, End>, EncodeError> where
I: Insertable<Item>,
sourceimpl<Ctx: EncoderContext> AttributeWriter<Ctx, Start>
impl<Ctx: EncoderContext> AttributeWriter<Ctx, Start>
pub fn inner_classes<F>(
self,
f: F
) -> Result<AttributeWriter<Ctx, End>, EncodeError> where
F: FnOnce(&mut ManyWriter<InnerClassWriter<Ctx, InnerClass>, u16>) -> Result<(), EncodeError>,
sourceimpl<Ctx: EncoderContext> AttributeWriter<Ctx, Start>
impl<Ctx: EncoderContext> AttributeWriter<Ctx, Start>
pub fn exceptions<F>(
self,
f: F
) -> Result<AttributeWriter<Ctx, End>, EncodeError> where
F: FnOnce(&mut ManyWriter<ExceptionWriter<Ctx, Start>, u16>) -> Result<(), EncodeError>,
sourceimpl<Ctx: EncoderContext> AttributeWriter<Ctx, Start>
impl<Ctx: EncoderContext> AttributeWriter<Ctx, Start>
pub fn raw_attribute<I>(
self,
name: I,
bytes: &[u8]
) -> Result<AttributeWriter<Ctx, End>, EncodeError> where
I: Insertable<Utf8>,
Trait Implementations
Auto Trait Implementations
impl<Ctx, State> RefUnwindSafe for AttributeWriter<Ctx, State> where
Ctx: RefUnwindSafe,
State: RefUnwindSafe,
impl<Ctx, State> Send for AttributeWriter<Ctx, State> where
Ctx: Send,
State: Send,
impl<Ctx, State> Sync for AttributeWriter<Ctx, State> where
Ctx: Sync,
State: Sync,
impl<Ctx, State> Unpin for AttributeWriter<Ctx, State> where
Ctx: Unpin,
State: Unpin,
impl<Ctx, State> UnwindSafe for AttributeWriter<Ctx, State> where
Ctx: UnwindSafe,
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