Function cuicui_chirp::parse_dsl_impl::delegate
source · pub fn delegate(inner_field: Ident)
Expand description
Field to delegate ParseDsl::method
when encountering a method name not
in this impl
block.
Default: None, no delegation occurs.
This is the same field that you mark with #[deref_mut]
so that methods
are accessible in the dsl!
macros.
Example
ⓘ
use bevy::prelude::*;
use cuicui_chirp::parse_dsl_impl;
#[derive(Deref, DerefMut)]
struct MyDsl {
#[deref]
inner_dsl: OtherDsl,
// ...
}
#[parse_dsl_impl(delegate = inner_dsl)]
impl MyDsl {
// ...