Struct class_file::Attributes
source · pub struct Attributes<'a> {
pub attributes: Vec<AttributeInfo<'a>>,
}
Fields
attributes: Vec<AttributeInfo<'a>>
Implementations
sourceimpl<'a> Attributes<'a>
impl<'a> Attributes<'a>
sourceimpl<'a> Attributes<'a>
impl<'a> Attributes<'a>
pub fn iter(&self) -> impl Iterator<Item = &AttributeInfo<'a>>
pub fn named(
&self,
cp: &ConstantPool<'a>,
name: &str
) -> Option<&AttributeInfo<'a>>
pub fn get<T: Attribute<'a>>(&self, cp: &ConstantPool<'a>) -> Option<T>
Trait Implementations
sourceimpl<'a> Clone for Attributes<'a>
impl<'a> Clone for Attributes<'a>
sourcefn clone(&self) -> Attributes<'a>
fn clone(&self) -> Attributes<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<'a> Debug for Attributes<'a>
impl<'a> Debug for Attributes<'a>
sourceimpl<'a> Hash for Attributes<'a>
impl<'a> Hash for Attributes<'a>
sourceimpl<'a> IntoIterator for Attributes<'a>
impl<'a> IntoIterator for Attributes<'a>
type Item = AttributeInfo<'a>
type Item = AttributeInfo<'a>
The type of the elements being iterated over.
type IntoIter = IntoIter<AttributeInfo<'a>, Global>
type IntoIter = IntoIter<AttributeInfo<'a>, Global>
Which kind of iterator are we turning this into?
sourcefn into_iter(self) -> <Self as IntoIterator>::IntoIter
fn into_iter(self) -> <Self as IntoIterator>::IntoIter
Creates an iterator from a value. Read more
sourceimpl<'a> PartialEq<Attributes<'a>> for Attributes<'a>
impl<'a> PartialEq<Attributes<'a>> for Attributes<'a>
sourcefn eq(&self, other: &Attributes<'a>) -> bool
fn eq(&self, other: &Attributes<'a>) -> bool
impl<'a> Eq for Attributes<'a>
impl<'a> StructuralEq for Attributes<'a>
impl<'a> StructuralPartialEq for Attributes<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for Attributes<'a>
impl<'a> Send for Attributes<'a>
impl<'a> Sync for Attributes<'a>
impl<'a> Unpin for Attributes<'a>
impl<'a> UnwindSafe for Attributes<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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