mirror of
https://codeberg.org/unspeaker/tengri.git
synced 2025-12-06 19:56:44 +01:00
parent
3e1084555b
commit
31e84bf5b3
3 changed files with 55 additions and 68 deletions
|
|
@ -84,14 +84,6 @@ impl ToTokens for ExposeImpl {
|
|||
quote! { Some(::tengri::dsl::Value::Sym(#key)) => state.#value(), }
|
||||
});
|
||||
write_quote_to(out, quote! {
|
||||
/// Generated by [tengri_proc::expose].
|
||||
impl<'n> ::tengri::dsl::Give<'n, #t> for #state {
|
||||
fn give <'source: 'n> (
|
||||
&self, words: ::tengri::dsl::TokenIter<'source>
|
||||
) -> Perhaps<#t> {
|
||||
Take::take(self, words)
|
||||
}
|
||||
}
|
||||
/// Generated by [tengri_proc::expose].
|
||||
impl<'n> ::tengri::dsl::Take<'n, #state> for #t {
|
||||
fn take <'source: 'n> (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue