Struct rust_jvm::vm::value::Scalar [] [src]

pub struct Scalar {
    class: Rc<Class>,
    fields: HashMap<Field, Value>,
}

An instance of a non-array object.

Fields

class

A reference to the object's creating class.

fields

The instance (non-static) fields of the object.

Methods

impl Scalar

fn new(class: Rc<Class>) -> Self

fn get_class(&self) -> Rc<Class>

fn get_field(&self, sig: &Field) -> Value

fn put_field(&mut self, sig: Field, value: Value)

Trait Implementations

Derived Implementations

impl Debug for Scalar

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