mirror of
https://codeberg.org/unspeaker/tengri.git
synced 2025-12-08 04:36:49 +01:00
parent
ca4c558eab
commit
e72225f83c
11 changed files with 421 additions and 574 deletions
|
|
@ -84,7 +84,7 @@ impl ToTokens for CommandDef {
|
|||
let mut out = TokenStream2::new();
|
||||
for (arg, _ty) in arm.args() {
|
||||
write_quote_to(&mut out, quote! {
|
||||
#arg: DslFrom::dsl_from(self, words, ||"command error")?,
|
||||
#arg: FromDsl::from_dsl(self, words, ||"command error")?,
|
||||
});
|
||||
}
|
||||
out
|
||||
|
|
@ -149,8 +149,8 @@ impl ToTokens for CommandDef {
|
|||
}
|
||||
}
|
||||
/// Generated by [tengri_proc::command].
|
||||
impl ::tengri::dsl::DslFrom<#state> for #command_enum {
|
||||
fn try_dsl_from (
|
||||
impl ::tengri::dsl::FromDsl<#state> for #command_enum {
|
||||
fn try_from_dsl (
|
||||
state: &#state,
|
||||
value: &impl ::tengri::dsl::Dsl
|
||||
) -> Perhaps<Self> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue