Enum rust_jvm::vm::sig::Type [] [src]

pub enum Type {
    Byte,
    Char,
    Double,
    Float,
    Int,
    Long,
    Short,
    Boolean,
    Reference(Class),
}

Java language type information.

Variants

Byte
Char
Double
Float
Int
Long
Short
Boolean
Reference

Methods

impl Type

fn new(type_str: &str) -> Self

fn new_multi(multi_type_str: &str) -> (Vec<Self>, &str)

Compute a sequence of types from a JVM-internal string representation.

fn new_partial(type_str: &str) -> Result<(Self, &str), ()>

Compute a type from a JVM-internal string representation.

fn default_value(&self) -> Value

Get the default value for the type. Java's default values for integers is 0, floats 0.0, characters '\0', booleans false, and references null.

Trait Implementations

Derived Implementations

impl Hash for Type

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 Type

fn assert_receiver_is_total_eq(&self)

impl PartialEq for Type

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

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

impl Clone for Type

fn clone(&self) -> Type

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

impl Debug for Type

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