Struct rust_jvm::vm::sig::Method [] [src]

pub struct Method {
    pub name: String,
    pub params: Vec<Type>,
    pub return_ty: Option<Type>,
}

A method signature.

Fields

name

The name of the method.

params

The types of the parameters of the method.

return_ty

The return type of the method, or None if the method is void.

Methods

impl Method

fn new(name: &str, descriptor: &str) -> Self

Trait Implementations

Derived Implementations

impl Hash for Method

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

1.3.0fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

impl Eq for Method

fn assert_receiver_is_total_eq(&self)

impl PartialEq for Method

fn eq(&self, __arg_0: &Method) -> bool

fn ne(&self, __arg_0: &Method) -> bool

impl Clone for Method

fn clone(&self) -> Method

1.0.0fn clone_from(&mut self, source: &Self)

impl Debug for Method

fn fmt(&self, __arg_0: &mut Formatter) -> Result