[][src]Trait hlvm_runtime::object::Object

pub trait Object: Sized + Clone + Debug + Display + Add + Sub + Mul + Div + Rem + Not {
    fn new(value_type: Type, contents: Contents) -> Self;
fn get_type(&self) -> Type;
fn get_list(&self) -> Vec<Self>;
fn get_contents(&self) -> Contents;
fn get_attributes(&self) -> Table<Self>;
fn get_foreign_function(&self) -> fn(_: Self) -> Self;
fn set_type(&mut self, object_type: Type);
fn set_list(&mut self, list: Vec<Self>);
fn set_contents(&mut self, contents: Contents);
fn set_attributes(&mut self, attributes: Table<Self>);
fn set_foreign_function(&mut self, function: fn(_: Self) -> Self); fn empty_instance() -> Self { ... }
fn from_string(string: String) -> Self { ... }
fn from_str(string: &str) -> Self { ... }
fn from_f64(decimal: f64) -> Self { ... }
fn from_number(decimal: BigDecimal) -> Self { ... }
fn from_instruction(instruction: Instruction) -> Self { ... }
fn from_problem(problem: Problem) -> Self { ... }
fn from_vector(vector: Vec<Self>) -> Self { ... }
fn from_nothing() -> Self { ... }
fn from_function(vector: Vec<Self>) -> Self { ... }
fn from_foreign_function(function: fn(_: Self) -> Self) -> Self { ... }
fn get_attr(&self, name: String) -> Self { ... }
fn as_number(&self) -> BigDecimal { ... }
fn as_usize(&self) -> usize { ... }
fn as_string(&self) -> String { ... }
fn as_list(&self) -> Vec<Self> { ... }
fn as_instruction(&self) -> Instruction { ... }
fn as_instance(&self) -> Table<Self> { ... }
fn as_foreign_function(&self) -> fn(_: Self) -> Self { ... }
fn set_attr(&mut self, name: String, object: Self) { ... }
fn get_attr_recursive(&mut self, names: Vec<String>) -> Self { ... }
fn set_attr_recursive(&mut self, names: Vec<String>, object: Self) -> Self { ... }
fn index(&mut self, index: Self) -> Self { ... }
fn list_push(&mut self, object: Self) { ... }
fn list_pop(&mut self) -> Self { ... }
fn call_foreign_function(&mut self, parameter: Self) -> Self { ... }
fn format(&self) -> String { ... }
fn print(&self) { ... }
fn println(&self) { ... } }

Required methods

fn new(value_type: Type, contents: Contents) -> Self

fn get_type(&self) -> Type

fn get_list(&self) -> Vec<Self>

fn get_contents(&self) -> Contents

fn get_attributes(&self) -> Table<Self>

fn get_foreign_function(&self) -> fn(_: Self) -> Self

fn set_type(&mut self, object_type: Type)

fn set_list(&mut self, list: Vec<Self>)

fn set_contents(&mut self, contents: Contents)

fn set_attributes(&mut self, attributes: Table<Self>)

fn set_foreign_function(&mut self, function: fn(_: Self) -> Self)

Loading content...

Provided methods

fn empty_instance() -> Self

fn from_string(string: String) -> Self

fn from_str(string: &str) -> Self

fn from_f64(decimal: f64) -> Self

fn from_number(decimal: BigDecimal) -> Self

fn from_instruction(instruction: Instruction) -> Self

fn from_problem(problem: Problem) -> Self

fn from_vector(vector: Vec<Self>) -> Self

fn from_nothing() -> Self

fn from_function(vector: Vec<Self>) -> Self

fn from_foreign_function(function: fn(_: Self) -> Self) -> Self

fn get_attr(&self, name: String) -> Self

fn as_number(&self) -> BigDecimal

fn as_usize(&self) -> usize

fn as_string(&self) -> String

fn as_list(&self) -> Vec<Self>

fn as_instruction(&self) -> Instruction

fn as_instance(&self) -> Table<Self>

fn as_foreign_function(&self) -> fn(_: Self) -> Self

fn set_attr(&mut self, name: String, object: Self)

fn get_attr_recursive(&mut self, names: Vec<String>) -> Self

fn set_attr_recursive(&mut self, names: Vec<String>, object: Self) -> Self

fn index(&mut self, index: Self) -> Self

fn list_push(&mut self, object: Self)

fn list_pop(&mut self) -> Self

fn call_foreign_function(&mut self, parameter: Self) -> Self

fn format(&self) -> String

fn print(&self)

fn println(&self)

Loading content...

Implementors

impl Object for Value[src]

fn empty_instance() -> Self[src]

fn from_string(string: String) -> Self[src]

fn from_str(string: &str) -> Self[src]

fn from_f64(decimal: f64) -> Self[src]

fn from_number(decimal: BigDecimal) -> Self[src]

fn from_instruction(instruction: Instruction) -> Self[src]

fn from_problem(problem: Problem) -> Self[src]

fn from_vector(vector: Vec<Self>) -> Self[src]

fn from_nothing() -> Self[src]

fn from_function(vector: Vec<Self>) -> Self[src]

fn from_foreign_function(function: fn(_: Self) -> Self) -> Self[src]

fn get_attr(&self, name: String) -> Self[src]

fn as_number(&self) -> BigDecimal[src]

fn as_usize(&self) -> usize[src]

fn as_string(&self) -> String[src]

fn as_list(&self) -> Vec<Self>[src]

fn as_instruction(&self) -> Instruction[src]

fn as_instance(&self) -> Table<Self>[src]

fn as_foreign_function(&self) -> fn(_: Self) -> Self[src]

fn set_attr(&mut self, name: String, object: Self)[src]

fn get_attr_recursive(&mut self, names: Vec<String>) -> Self[src]

fn set_attr_recursive(&mut self, names: Vec<String>, object: Self) -> Self[src]

fn index(&mut self, index: Self) -> Self[src]

fn list_push(&mut self, object: Self)[src]

fn list_pop(&mut self) -> Self[src]

fn call_foreign_function(&mut self, parameter: Self) -> Self[src]

fn format(&self) -> String[src]

fn print(&self)[src]

fn println(&self)[src]

Loading content...