pub struct Class { /* private fields */ }Implementations§
Source§impl Class
impl Class
pub fn version(&self) -> ClassVersion
pub fn access_flags(&self) -> u16
pub fn name(&self) -> &str
pub fn super_name(&self) -> Option<&str>
pub fn source_file(&self) -> Option<&str>
pub fn interfaces(&self) -> impl ExactSizeIterator<Item = &str>
pub fn fields(&self) -> impl ExactSizeIterator<Item = Field<'_>>
pub fn methods(&self) -> impl ExactSizeIterator<Item = Method<'_>>
pub fn constants( &self, ) -> impl ExactSizeIterator<Item = (ConstantPoolIndex, ConstantRef<'_>)>
pub fn constant(&self, index: ConstantPoolIndex) -> Option<ConstantRef<'_>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Class
impl RefUnwindSafe for Class
impl Send for Class
impl Sync for Class
impl Unpin for Class
impl UnsafeUnpin for Class
impl UnwindSafe for Class
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