pub struct LocalVariable {
pub start_pc: u16,
pub length: u16,
pub name_index: CpIndex,
pub descriptor_index: CpIndex,
pub index: u16,
}Expand description
One entry of a LocalVariableTable attribute.
See JVMS §4.7.13.
Fields§
§start_pc: u16§length: u16§name_index: CpIndex§descriptor_index: CpIndex§index: u16Implementations§
Source§impl LocalVariable
impl LocalVariable
Sourcepub fn try_read(
constant_pool: &ConstantPool<'_>,
cursor: &mut Cursor<'_>,
) -> Result<Self>
pub fn try_read( constant_pool: &ConstantPool<'_>, cursor: &mut Cursor<'_>, ) -> Result<Self>
Reads one entry, validating its name and descriptor.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LocalVariable
impl RefUnwindSafe for LocalVariable
impl Send for LocalVariable
impl Sync for LocalVariable
impl Unpin for LocalVariable
impl UnsafeUnpin for LocalVariable
impl UnwindSafe for LocalVariable
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