pub struct CodeAttribute {
pub codes: Vec<u8>,
pub max_stack: u16,
pub max_locals: u16,
pub exceptions: ExceptionTable,
pub attributes: Vec<OriginAttribute>,
}Fields§
§codes: Vec<u8>§max_stack: u16§max_locals: u16§exceptions: ExceptionTable§attributes: Vec<OriginAttribute>Implementations§
Source§impl CodeAttribute
impl CodeAttribute
pub fn new_with_data(data: &[u8]) -> Result<CodeAttribute>
pub fn new_with_reader<T: Read>( reader: &mut DataReader<T>, ) -> Result<CodeAttribute>
pub fn to_bytes(&self) -> Result<Vec<u8>>
pub fn byte_size(&self) -> usize
Trait Implementations§
Source§impl Clone for CodeAttribute
impl Clone for CodeAttribute
Source§fn clone(&self) -> CodeAttribute
fn clone(&self) -> CodeAttribute
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CodeAttribute
impl RefUnwindSafe for CodeAttribute
impl Send for CodeAttribute
impl Sync for CodeAttribute
impl Unpin for CodeAttribute
impl UnsafeUnpin for CodeAttribute
impl UnwindSafe for CodeAttribute
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