Struct noak::reader::DecodeMany
source · pub struct DecodeMany<'input, T, Count> { /* private fields */ }
Expand description
Provides a method (iter
) to iterate over a contiguous array declared within the class file.
Implementations§
source§impl<'input> DecodeMany<'input, Attribute<'input>, u16>
impl<'input> DecodeMany<'input, Attribute<'input>, u16>
sourcepub fn find_attribute<A>(
&self,
pool: &ConstantPool<'input>
) -> Result<Option<A>, DecodeError>where
A: FromAttribute<'input>,
pub fn find_attribute<A>(
&self,
pool: &ConstantPool<'input>
) -> Result<Option<A>, DecodeError>where
A: FromAttribute<'input>,
Tries to find a specific attribute. The first occurrence with the matching name is returned.
use noak::reader::attributes::Code;
let code: Code<'_> = method
.attributes()
.find_attribute(&class.pool())?
.expect("no `Code` attribute found");
source§impl<'input, T, Count> DecodeMany<'input, T, Count>where
T: Decode<'input>,
Count: Decode<'input> + Countdown,
impl<'input, T, Count> DecodeMany<'input, T, Count>where
T: Decode<'input>,
Count: Decode<'input> + Countdown,
sourcepub fn iter(&self) -> DecodeManyIter<'input, T, Count> ⓘ
pub fn iter(&self) -> DecodeManyIter<'input, T, Count> ⓘ
Returns an iterator over the elements.
Trait Implementations§
source§impl<'input, T, Count: Countdown> Clone for DecodeMany<'input, T, Count>
impl<'input, T, Count: Countdown> Clone for DecodeMany<'input, T, Count>
source§impl<'input, T, Count> Debug for DecodeMany<'input, T, Count>
impl<'input, T, Count> Debug for DecodeMany<'input, T, Count>
source§impl<'input, T, Count> IntoIterator for &DecodeMany<'input, T, Count>where
T: Decode<'input>,
Count: Decode<'input> + Countdown,
impl<'input, T, Count> IntoIterator for &DecodeMany<'input, T, Count>where
T: Decode<'input>,
Count: Decode<'input> + Countdown,
source§impl<'input, T, Count> IntoIterator for &mut DecodeMany<'input, T, Count>where
T: Decode<'input>,
Count: Decode<'input> + Countdown,
impl<'input, T, Count> IntoIterator for &mut DecodeMany<'input, T, Count>where
T: Decode<'input>,
Count: Decode<'input> + Countdown,
source§impl<'input, T, Count> IntoIterator for DecodeMany<'input, T, Count>where
T: Decode<'input>,
Count: Decode<'input> + Countdown,
impl<'input, T, Count> IntoIterator for DecodeMany<'input, T, Count>where
T: Decode<'input>,
Count: Decode<'input> + Countdown,
Auto Trait Implementations§
impl<'input, T, Count> Freeze for DecodeMany<'input, T, Count>where
Count: Freeze,
impl<'input, T, Count> RefUnwindSafe for DecodeMany<'input, T, Count>where
Count: RefUnwindSafe,
impl<'input, T, Count> Send for DecodeMany<'input, T, Count>where
Count: Send,
impl<'input, T, Count> Sync for DecodeMany<'input, T, Count>where
Count: Sync,
impl<'input, T, Count> Unpin for DecodeMany<'input, T, Count>where
Count: Unpin,
impl<'input, T, Count> UnwindSafe for DecodeMany<'input, T, Count>where
Count: 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