pub struct Class {
pub magic: u32,
pub minor_version: u16,
pub major_version: u16,
pub constant_pool: Vec<ConstantPoolInfo>,
pub access_flags: u16,
pub this_class: u16,
pub super_class: u16,
pub interfaces: Vec<u16>,
pub fields: Vec<Field>,
pub methods: Vec<Method>,
pub attributes: Vec<Attribute>,
}
Fields§
§magic: u32
§minor_version: u16
§major_version: u16
§constant_pool: Vec<ConstantPoolInfo>
§access_flags: u16
§this_class: u16
§super_class: u16
§interfaces: Vec<u16>
§fields: Vec<Field>
§methods: Vec<Method>
§attributes: Vec<Attribute>
Implementations§
Source§impl Class
impl Class
pub fn is_public(&self) -> bool
pub fn is_final(&self) -> bool
pub fn is_super(&self) -> bool
pub fn is_interface(&self) -> bool
pub fn is_abstract(&self) -> bool
pub fn is_synthetic(&self) -> bool
pub fn is_annotation(&self) -> bool
pub fn is_enum(&self) -> bool
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 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