pub trait ParseArguments<H>:
Debug
+ Clone
+ Sized
+ 'static {
// Required method
fn parse(
test_dsl: &TestDsl<H>,
node: &KdlNode,
) -> Result<Self, TestErrorCase>;
}
Expand description
Types that can be parsed from a node as arguments
This includes both named/positional parameters as well as child nodes
Required Methods§
Sourcefn parse(test_dsl: &TestDsl<H>, node: &KdlNode) -> Result<Self, TestErrorCase>
fn parse(test_dsl: &TestDsl<H>, node: &KdlNode) -> Result<Self, TestErrorCase>
Do the parsing and return an instance
See VerbInstance
and
ConditionInstance
for how to get an instance from a node.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.