Struct cafebabe::ClassFile[][src]

pub struct ClassFile<'a> {
    pub major_version: u16,
    pub minor_version: u16,
    pub access_flags: ClassAccessFlags,
    pub this_class: Cow<'a, str>,
    pub super_class: Option<Cow<'a, str>>,
    pub interfaces: Vec<Cow<'a, str>>,
    pub fields: Vec<FieldInfo<'a>>,
    pub methods: Vec<MethodInfo<'a>>,
    pub attributes: Vec<AttributeInfo<'a>>,
    // some fields omitted
}

Fields

major_version: u16minor_version: u16access_flags: ClassAccessFlagsthis_class: Cow<'a, str>super_class: Option<Cow<'a, str>>interfaces: Vec<Cow<'a, str>>fields: Vec<FieldInfo<'a>>methods: Vec<MethodInfo<'a>>attributes: Vec<AttributeInfo<'a>>

Implementations

impl<'a> ClassFile<'a>[src]

pub fn constantpool_iter(&'a self) -> ConstantPoolIter<'a>

Notable traits for ConstantPoolIter<'a>

impl<'a> Iterator for ConstantPoolIter<'a> type Item = ConstantPoolItem<'a>;
[src]

Trait Implementations

impl<'a> Debug for ClassFile<'a>[src]

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

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<'a> !RefUnwindSafe for ClassFile<'a>

impl<'a> !Send for ClassFile<'a>

impl<'a> !Sync for ClassFile<'a>

impl<'a> Unpin for ClassFile<'a>

impl<'a> !UnwindSafe for ClassFile<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

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

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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

Performs the conversion.