Trait moss::object::Interface
[−]
[src]
pub trait Interface { fn as_any(&self) -> &Any; fn to_string(&self, env: &mut Env) -> Result<String, Box<Exception>> { ... } fn add(&self, b: &Object, env: &mut Env) -> FnResult { ... } fn radd(&self, a: &Object, env: &mut Env) -> FnResult { ... } fn sub(&self, b: &Object, env: &mut Env) -> FnResult { ... } fn rsub(&self, a: &Object, env: &mut Env) -> FnResult { ... } fn mpy(&self, b: &Object, env: &mut Env) -> FnResult { ... } fn rmpy(&self, a: &Object, env: &mut Env) -> FnResult { ... } fn div(&self, b: &Object, env: &mut Env) -> FnResult { ... } fn rdiv(&self, a: &Object, env: &mut Env) -> FnResult { ... } fn idiv(&self, b: &Object, env: &mut Env) -> FnResult { ... } fn ridiv(&self, a: &Object, env: &mut Env) -> FnResult { ... } fn imod(&self, b: &Object, env: &mut Env) -> FnResult { ... } fn pow(&self, b: &Object, env: &mut Env) -> FnResult { ... } fn rpow(&self, b: &Object, env: &mut Env) -> FnResult { ... } fn eq_plain(&self, b: &Object) -> bool { ... } fn req_plain(&self, a: &Object) -> bool { ... } fn eq(&self, b: &Object, env: &mut Env) -> FnResult { ... } fn req(&self, a: &Object, env: &mut Env) -> FnResult { ... } fn lt(&self, b: &Object, env: &mut Env) -> FnResult { ... } fn gt(&self, b: &Object, env: &mut Env) -> FnResult { ... } fn le(&self, b: &Object, env: &mut Env) -> FnResult { ... } fn ge(&self, b: &Object, env: &mut Env) -> FnResult { ... } fn rlt(&self, b: &Object, env: &mut Env) -> FnResult { ... } fn rgt(&self, b: &Object, env: &mut Env) -> FnResult { ... } fn rle(&self, b: &Object, env: &mut Env) -> FnResult { ... } fn rge(&self, b: &Object, env: &mut Env) -> FnResult { ... } fn neg(&self, env: &mut Env) -> FnResult { ... } fn abs(&self, env: &mut Env) -> FnResult { ... } fn get(&self, key: &Object, env: &mut Env) -> FnResult { ... } fn index(&self, indices: &[Object], env: &mut Env) -> FnResult { ... } fn set_index(
&self,
indices: &[Object],
value: &Object,
env: &mut Env
) -> FnResult { ... } fn type_name(&self) -> String { ... } }
Required Methods
Provided Methods
fn to_string(&self, env: &mut Env) -> Result<String, Box<Exception>>
fn add(&self, b: &Object, env: &mut Env) -> FnResult
fn radd(&self, a: &Object, env: &mut Env) -> FnResult
fn sub(&self, b: &Object, env: &mut Env) -> FnResult
fn rsub(&self, a: &Object, env: &mut Env) -> FnResult
fn mpy(&self, b: &Object, env: &mut Env) -> FnResult
fn rmpy(&self, a: &Object, env: &mut Env) -> FnResult
fn div(&self, b: &Object, env: &mut Env) -> FnResult
fn rdiv(&self, a: &Object, env: &mut Env) -> FnResult
fn idiv(&self, b: &Object, env: &mut Env) -> FnResult
fn ridiv(&self, a: &Object, env: &mut Env) -> FnResult
fn imod(&self, b: &Object, env: &mut Env) -> FnResult
fn pow(&self, b: &Object, env: &mut Env) -> FnResult
fn rpow(&self, b: &Object, env: &mut Env) -> FnResult
fn eq_plain(&self, b: &Object) -> bool
fn req_plain(&self, a: &Object) -> bool
fn eq(&self, b: &Object, env: &mut Env) -> FnResult
fn req(&self, a: &Object, env: &mut Env) -> FnResult
fn lt(&self, b: &Object, env: &mut Env) -> FnResult
fn gt(&self, b: &Object, env: &mut Env) -> FnResult
fn le(&self, b: &Object, env: &mut Env) -> FnResult
fn ge(&self, b: &Object, env: &mut Env) -> FnResult
fn rlt(&self, b: &Object, env: &mut Env) -> FnResult
fn rgt(&self, b: &Object, env: &mut Env) -> FnResult
fn rle(&self, b: &Object, env: &mut Env) -> FnResult
fn rge(&self, b: &Object, env: &mut Env) -> FnResult
fn neg(&self, env: &mut Env) -> FnResult
fn abs(&self, env: &mut Env) -> FnResult
fn get(&self, key: &Object, env: &mut Env) -> FnResult
fn index(&self, indices: &[Object], env: &mut Env) -> FnResult
fn set_index(
&self,
indices: &[Object],
value: &Object,
env: &mut Env
) -> FnResult
&self,
indices: &[Object],
value: &Object,
env: &mut Env
) -> FnResult