pub struct Function { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Object for Function
impl Object for Function
fn type_name(&self) -> &'static str
fn call(&self, args: &[Value], cx: &Context<'_>) -> Result<Value>
fn as_any(&self) -> &dyn Any
fn as_any_mut(&mut self) -> &mut dyn Any
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 equals(&self, _other: &Value) -> bool
fn display(&self) -> String
fn debug(&self) -> String
Auto Trait Implementations§
impl !RefUnwindSafe for Function
impl !Send for Function
impl !Sync for Function
impl !UnwindSafe for Function
impl Freeze for Function
impl Unpin for Function
impl UnsafeUnpin for Function
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more