Trait cuicui_chirp::parse_dsl::ParseDsl
source · pub trait ParseDsl: DslBundle {
// Required method
fn method(&mut self, ctx: MethodCtx<'_, '_, '_>) -> Result<()>;
}
Expand description
A DslBundle
that can be parsed.
Required Methods§
sourcefn method(&mut self, ctx: MethodCtx<'_, '_, '_>) -> Result<()>
fn method(&mut self, ctx: MethodCtx<'_, '_, '_>) -> Result<()>
Apply method named name
to self
.
Calling format
This is called with a MethodCtx
argument. See the MethodCtx
documentation for details as to what format to expect as argument.
Errors
You may chose to fail for any reason, the expected failure case
is failure to parse an argument inctx.args
or trying to call an
innexisting method with ctx.name
.
Object Safety§
This trait is not object safe.