pub trait Object: Any + Debug {
Show 22 methods
// Provided methods
fn debug(&self, f: &mut Formatter<'_>) -> Result { ... }
fn add(&self, other: &Value) -> Result<Value, RuntimeError> { ... }
fn sub(&self, other: &Value) -> Result<Value, RuntimeError> { ... }
fn mul(&self, other: &Value) -> Result<Value, RuntimeError> { ... }
fn div(&self, other: &Value) -> Result<Value, RuntimeError> { ... }
fn modulo(&self, other: &Value) -> Result<Value, RuntimeError> { ... }
fn pow(&self, other: &Value) -> Result<Value, RuntimeError> { ... }
fn compare(&self, other: &Value) -> Result<Ordering, RuntimeError> { ... }
fn logic_and(&self, other: &Value) -> Result<Value, RuntimeError> { ... }
fn logic_or(&self, other: &Value) -> Result<Value, RuntimeError> { ... }
fn negate(&self) -> Result<Value, RuntimeError> { ... }
fn call(&mut self, args: &[ValueRef]) -> Result<Option<Value>, RuntimeError> { ... }
fn index_get(&self, index: &Value) -> Result<ValueRef, RuntimeError> { ... }
fn index_set(
&mut self,
index: &Value,
value: ValueRef,
) -> Result<(), RuntimeError> { ... }
fn property_get(&self, member: &str) -> Result<ValueRef, RuntimeError> { ... }
fn property_set(
&mut self,
member: &str,
value: ValueRef,
) -> Result<(), RuntimeError> { ... }
fn property_call(
&mut self,
member: &str,
args: &[ValueRef],
) -> Result<Option<Value>, RuntimeError> { ... }
fn make_iterator(
&self,
) -> Result<Box<dyn Iterator<Item = ValueRef>>, RuntimeError> { ... }
fn iterator_has_next(&self) -> Result<bool, RuntimeError> { ... }
fn iterate_next(&mut self) -> Result<ValueRef, RuntimeError> { ... }
fn make_slice(&self, range: ValueRef) -> Result<Value, RuntimeError> { ... }
fn into_future(
self: Box<Self>,
) -> Result<Box<dyn Future<Output = Value> + Unpin + Send + 'static>, RuntimeError> { ... }
}Provided Methods§
fn debug(&self, f: &mut Formatter<'_>) -> Result
Sourcefn mul(&self, other: &Value) -> Result<Value, RuntimeError>
fn mul(&self, other: &Value) -> Result<Value, RuntimeError>
arithmetic multiplication operation
Sourcefn negate(&self) -> Result<Value, RuntimeError>
fn negate(&self) -> Result<Value, RuntimeError>
negate operation