pub fn call_method(
        &self,
        name: &str,
        mut args: Vec<RefValue>,
    ) -> Result<Option<RefValue>, String> {
        let builtin = self.get_method(name)?;

        // Inject own value as first parameter.
        args.insert(0, self.clone());

        // Call the builtin directly.
        builtin.call(None, args)
    }
/** Performs a direct method call on a value.

    This function is designed to invoke methods on values directly from Rust code. */
Performs a direct method call on a value.
This function is designed to invoke methods on values directly from Rust code.
Performs a direct method call on a value . This function is designed to invoke methods on values directly from Rust code .
pub fn call_method(
        &self,
        name: &str,
        mut args: Vec<RefValue>,
    ) -> Result<Option<RefValue>, String> {
        let builtin = self.get_method(name)?;
        // Inject own value as first parameter.
        args.insert(0, self.clone());
        // Call the builtin directly.
        builtin.call(None, args)
    }
pub fn call_method ( & self , name : & str , mut args : Vec < RefValue > , ) -> Result < Option < RefValue > , String > { let builtin = self . get_method ( name ) ? ; // Inject own value as first parameter. args . insert ( 0 , self . clone ( ) ) ; // Call the builtin directly. builtin . call ( None , args ) }
Performs a direct method call on a value.
Performs a direct method call on a value .
&self
name
&str
args
Vec<RefValue>
&self
name
&str
args
Vec<RefValue>