pub fn run<N, A, T>(
    context: &Arc<runestick::Context>,
    source: &str,
    function: N,
    args: A,
) -> Result<T, RunError>
where
    N: IntoIterator,
    N::Item: IntoComponent,
    A: runestick::Args,
    T: runestick::FromValue,
{
    let mut sources = Sources::new();
    sources.insert(Source::new("main", source.to_owned()));

    internal_run(context, &mut sources, function, args)
}
/// Call the specified function in the given script.
Call the specified function in the given script.
Call the specified function in the given script .
pub fn run<N, A, T>(
    context: &Arc<runestick::Context>,
    source: &str,
    function: N,
    args: A,
) -> Result<T, RunError>
where
    N: IntoIterator,
    N::Item: IntoComponent,
    A: runestick::Args,
    T: runestick::FromValue,
{
    let mut sources = Sources::new();
    sources.insert(Source::new("main", source.to_owned()));
    internal_run(context, &mut sources, function, args)
}
pub fn run < N , A , T > ( context : & Arc < runestick :: Context > , source : & str , function : N , args : A , ) -> Result < T , RunError > where N : IntoIterator , N :: Item : IntoComponent , A : runestick :: Args , T : runestick :: FromValue , { let mut sources = Sources :: new ( ) ; sources . insert ( Source :: new ( " " , source . to_owned ( ) ) ) ; internal_run ( context , & mut sources , function , args ) }
Call the specified function in the given script.
Call the specified function in the given script .
context
&Arc<runestick::Context>
source
&str
function
N
args
A
context
&Arc<runestick::Context>
source
&str
function
N
args
A