MCPcopy Index your code
hub / github.com/endbasic/endbasic / new

Method new

core/tests/testutils/callables/async_increment_fn.rs:31–48  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29
30impl AsyncIncrementFunction {
31 pub(super) fn new() -> Rc<Self> {
32 Rc::from(Self {
33 metadata: CallableMetadataBuilder::new("ASYNC_INCREMENT")
34 .with_return_type(ExprType::Integer)
35 .with_async(true)
36 .with_syntax(&[(
37 &[SingularArgSyntax::RequiredValue(
38 RequiredValueSyntax {
39 name: Cow::Borrowed("value"),
40 vtype: ExprType::Integer,
41 },
42 ArgSepSyntax::End,
43 )],
44 None,
45 )])
46 .test_build(),
47 })
48 }
49}
50
51#[async_trait(?Send)]

Callers

nothing calls this directly

Calls 4

test_buildMethod · 0.80
with_syntaxMethod · 0.80
with_asyncMethod · 0.80
with_return_typeMethod · 0.80

Tested by

no test coverage detected