Trait r::callable::core::Callable

source ·
pub trait Callable: CallableFormals {
    // Provided methods
    fn match_args(
        &self,
        args: List,
        stack: &mut CallStack,
    ) -> Result<(List, List), Signal> { ... }
    fn match_arg_exprs(
        &self,
        args: ExprList,
        stack: &mut CallStack,
    ) -> Result<(List, List), Signal> { ... }
    fn call(&self, args: ExprList, stack: &mut CallStack) -> EvalResult { ... }
    fn call_mut(&self, args: ExprList, stack: &mut CallStack) -> EvalResult { ... }
    fn call_matched(
        &self,
        _args: List,
        _ellipsis: List,
        _stack: &mut CallStack,
    ) -> EvalResult { ... }
    fn call_assign(
        &self,
        value: Expr,
        args: ExprList,
        stack: &mut CallStack,
    ) -> EvalResult { ... }
}

Provided Methods§

source

fn match_args( &self, args: List, stack: &mut CallStack, ) -> Result<(List, List), Signal>

source

fn match_arg_exprs( &self, args: ExprList, stack: &mut CallStack, ) -> Result<(List, List), Signal>

source

fn call(&self, args: ExprList, stack: &mut CallStack) -> EvalResult

source

fn call_mut(&self, args: ExprList, stack: &mut CallStack) -> EvalResult

source

fn call_matched( &self, _args: List, _ellipsis: List, _stack: &mut CallStack, ) -> EvalResult

source

fn call_assign( &self, value: Expr, args: ExprList, stack: &mut CallStack, ) -> EvalResult

Trait Implementations§

source§

impl Debug for Box<dyn Callable>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Implementations on Foreign Types§

source§

impl Callable for String

source§

fn call(&self, args: ExprList, stack: &mut CallStack) -> EvalResult

Implementors§

source§

impl Callable for Obj

source§

impl Callable for KeywordBlock

source§

impl Callable for KeywordFor

source§

impl Callable for KeywordIf

source§

impl Callable for KeywordList

source§

impl Callable for KeywordParen

source§

impl Callable for KeywordRepeat

source§

impl Callable for KeywordReturn

source§

impl Callable for KeywordVec

source§

impl Callable for KeywordWhile

source§

impl Callable for InfixAdd

source§

impl Callable for InfixAnd

source§

impl Callable for InfixAssign

source§

impl Callable for InfixColon

source§

impl Callable for InfixDiv

source§

impl Callable for InfixDollar

source§

impl Callable for InfixEqual

source§

impl Callable for InfixGreater

source§

impl Callable for InfixGreaterEqual

source§

impl Callable for InfixLess

source§

impl Callable for InfixLessEqual

source§

impl Callable for InfixMod

source§

impl Callable for InfixMul

source§

impl Callable for InfixNotEqual

source§

impl Callable for InfixOr

source§

impl Callable for InfixPipe

source§

impl Callable for InfixPow

source§

impl Callable for InfixSub

source§

impl Callable for InfixVectorAnd

source§

impl Callable for InfixVectorOr

source§

impl Callable for PostfixIndex

source§

impl Callable for PostfixPack

source§

impl Callable for PostfixVecIndex

source§

impl Callable for PrefixNot

source§

impl Callable for PrefixPack

source§

impl Callable for PrefixSub

source§

impl Callable for PrimitiveC

source§

impl Callable for PrimitiveCallstack

source§

impl Callable for PrimitiveEnvironment

source§

impl Callable for PrimitiveEval

source§

impl Callable for PrimitiveIsNull

source§

impl Callable for PrimitiveLength

source§

impl Callable for PrimitiveList

source§

impl Callable for PrimitiveNames

source§

impl Callable for PrimitiveParent

source§

impl Callable for PrimitivePaste

source§

impl Callable for PrimitivePrint

source§

impl Callable for PrimitiveQ

source§

impl Callable for PrimitiveQuote

source§

impl Callable for PrimitiveRnorm

source§

impl Callable for PrimitiveRunif

source§

impl Callable for PrimitiveSubstitute

source§

impl Callable for PrimitiveSum

source§

impl Callable for PrimitiveTypeOf