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 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 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...
Loading content...
Loading content...