pub fn call(
        &self,
        context: &mut Context,
        args: usize,
        nargs: Option<Dict>,
    ) -> Result<Accept, Reject> {
        if let Value::Object(object) = &*self.borrow() {
            object.call(context, args, nargs)
        } else {
            Error::new(None, format!("'{}' cannot be called", self.repr())).into()
        }
    }
/// Call a value with a given context, argument and named argument set.
Call a value with a given context, argument and named argument set.
Call a value with a given context argument and named argument set .
pub fn call(
        &self,
        context: &mut Context,
        args: usize,
        nargs: Option<Dict>,
    ) -> Result<Accept, Reject> {
        if let Value::Object(object) = &*self.borrow() {
            object.call(context, args, nargs)
        } else {
            Error::new(None, format!("'{}' cannot be called", self.repr())).into()
        }
    }
pub fn call ( & self , context : & mut Context , args : usize , nargs : Option < Dict > , ) -> Result < Accept , Reject > { if let Value :: Object ( object ) = & * self . borrow ( ) { object . call ( context , args , nargs ) } else { Error :: new ( None , format ! ( " " self repr ( ) ) ) . into ( ) } }
Call a value with a given context, argument and named argument set.
Call a value with a given context argument and named argument set .
&self
context
&mut Context
args
usize
nargs
Option<Dict>
&self
context
&mut Context
args
usize
nargs
Option<Dict>