pub struct JasmMethod {
pub modifiers: Vec<String>,
pub name_and_descriptor: String,
pub stack_size: Option<u32>,
pub locals_count: Option<u32>,
pub instructions: Vec<JasmInstruction>,
}Expand description
JASM 方法声明AST 节点
Fields§
§modifiers: Vec<String>访问修饰符(public, static 等)
name_and_descriptor: String方法名和类型描述符(“main”:“([Ljava/lang/String;)V”)
stack_size: Option<u32>栈大小
locals_count: Option<u32>局部变量数量
instructions: Vec<JasmInstruction>指令列表
Trait Implementations§
Source§impl Clone for JasmMethod
impl Clone for JasmMethod
Source§fn clone(&self) -> JasmMethod
fn clone(&self) -> JasmMethod
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for JasmMethod
impl Debug for JasmMethod
Source§impl<'de> Deserialize<'de> for JasmMethod
impl<'de> Deserialize<'de> for JasmMethod
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for JasmMethod
impl RefUnwindSafe for JasmMethod
impl Send for JasmMethod
impl Sync for JasmMethod
impl Unpin for JasmMethod
impl UnwindSafe for JasmMethod
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