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

pub struct Array {
    class: Rc<Class>,
    array: Vec<Value>,
}

An instance of an array object.

Fields

class

A reference to the (synthetic) array class.

array

The array data.

Methods

impl Array

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

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

fn get(&self, index: i32) -> Value

fn put(&mut self, index: i32, value: Value)

fn len(&self) -> i32

Trait Implementations

Derived Implementations

impl Debug for Array

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