Trait Object
Source pub trait Object: Any {
Show 14 methods
// Required methods
fn as_any(&self) -> &dyn Any;
fn as_any_mut(&mut self) -> &mut dyn Any;
// Provided methods
fn type_name(&self) -> &'static str { ... }
fn get_member(&self, name: &str) -> Result<Value> { ... }
fn get_index(&self, index: i64) -> Result<Value> { ... }
fn get_key_value(&self, key: &str) -> Result<Value> { ... }
fn as_string(&self) -> Option<String> { ... }
fn as_float(&self) -> Option<f64> { ... }
fn as_int(&self) -> Option<i64> { ... }
fn as_bool(&self) -> Option<bool> { ... }
fn call(&self, _args: &[Value]) -> Result<Value> { ... }
fn equals(&self, _other: &Value) -> bool { ... }
fn display(&self) -> String { ... }
fn debug(&self) -> String { ... }
}
Formats the value using the given formatter.
Read more
Formats the value using the given formatter.
Read more