fn call(generator: bool, kind: IndexFnKind) -> Option<Call> {
        match kind {
            IndexFnKind::None if generator => Some(Call::Generator),
            IndexFnKind::None => Some(Call::Immediate),
            IndexFnKind::Async if generator => Some(Call::Stream),
            IndexFnKind::Async => Some(Call::Async),
            IndexFnKind::Const => None,
        }
    }
/// Construct the calling convention based on the parameters.
Construct the calling convention based on the parameters.
Construct the calling convention based on the parameters .
fn call(generator: bool, kind: IndexFnKind) -> Option<Call> {
        match kind {
            IndexFnKind::None if generator => Some(Call::Generator),
            IndexFnKind::None => Some(Call::Immediate),
            IndexFnKind::Async if generator => Some(Call::Stream),
            IndexFnKind::Async => Some(Call::Async),
            IndexFnKind::Const => None,
        }
    }
fn call ( generator : bool , kind : IndexFnKind ) -> Option < Call > { match kind { IndexFnKind :: None if generator => Some ( Call :: Generator ) , IndexFnKind :: None => Some ( Call :: Immediate ) , IndexFnKind :: Async if generator => Some ( Call :: Stream ) , IndexFnKind :: Async => Some ( Call :: Async ) , IndexFnKind :: Const => None , } }
Construct the calling convention based on the parameters.
Construct the calling convention based on the parameters .
generator
bool
kind
IndexFnKind
generator
bool
kind
IndexFnKind