pub trait ParseDsl: DslBundle {
    // Required method
    fn method(&mut self, ctx: MethodCtx<'_, '_, '_>) -> Result<()>;
}
Expand description

A DslBundle that can be parsed.

Required Methods§

source

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.

Implementations on Foreign Types§

source§

impl ParseDsl for BaseDsl

source§

fn method(&mut self, data: MethodCtx<'_, '_, '_>) -> Result<()>

Implementors§

source§

impl<T, D, F> ParseDsl for ReflectDsl<T, D, F>where T: Bundle + Default + Struct, D: DslBundle, F: Format,