RawClass

Struct RawClass 

Source
pub struct RawClass<'c> {
Show 15 fields pub magic: u32, pub minor_version: u16, pub major_version: u16, pub constant_pool_count: u16, pub constant_pool: Vec<Constant<'c>>, pub access_flags: ClassAccessFlag, pub this_class: u16, pub super_class: u16, pub interface_count: u16, pub field_count: u16, pub fields: Vec<Field>, pub methods_count: u16, pub methods: Vec<Method>, pub attributes_count: u16, pub attributes: Vec<Attribute>,
}
Expand description

A class file

Fields§

§magic: u32§minor_version: u16§major_version: u16§constant_pool_count: u16§constant_pool: Vec<Constant<'c>>§access_flags: ClassAccessFlag§this_class: u16§super_class: u16§interface_count: u16§field_count: u16§fields: Vec<Field>§methods_count: u16§methods: Vec<Method>§attributes_count: u16§attributes: Vec<Attribute>

Trait Implementations§

Source§

impl<'c> Debug for RawClass<'c>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'c> Freeze for RawClass<'c>

§

impl<'c> RefUnwindSafe for RawClass<'c>

§

impl<'c> Send for RawClass<'c>

§

impl<'c> Sync for RawClass<'c>

§

impl<'c> Unpin for RawClass<'c>

§

impl<'c> UnwindSafe for RawClass<'c>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.