Struct noak::reader::cpool::ConstantPool
source · pub struct ConstantPool<'input> { /* private fields */ }
Implementations§
source§impl<'input> ConstantPool<'input>
impl<'input> ConstantPool<'input>
pub fn retrieve<I>( &self, at: Index<I> ) -> Result<<Index<I> as ToValue<'input>>::Target, DecodeError>
pub fn get<I: TryFromItem<'input>>( &self, at: Index<I> ) -> Result<&I, DecodeError>
pub fn iter(&self) -> impl Iterator<Item = &Item<'input>>
pub fn iter_indices( &self ) -> impl Iterator<Item = (Index<Item<'input>>, &Item<'input>)>
Trait Implementations§
source§impl<'input> Clone for ConstantPool<'input>
impl<'input> Clone for ConstantPool<'input>
source§fn clone(&self) -> ConstantPool<'input>
fn clone(&self) -> ConstantPool<'input>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<'input> Freeze for ConstantPool<'input>
impl<'input> RefUnwindSafe for ConstantPool<'input>
impl<'input> Send for ConstantPool<'input>
impl<'input> Sync for ConstantPool<'input>
impl<'input> Unpin for ConstantPool<'input>
impl<'input> UnwindSafe for ConstantPool<'input>
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