mirror of
https://codeberg.org/unspeaker/tengri.git
synced 2025-12-06 19:56:44 +01:00
This commit is contained in:
parent
2048dd2263
commit
776cea6f1b
9 changed files with 126 additions and 108 deletions
|
|
@ -85,9 +85,9 @@ impl ToTokens for ExposeImpl {
|
|||
let values = variants.iter().map(ExposeArm::from);
|
||||
write_quote_to(out, quote! {
|
||||
/// Generated by [tengri_proc::expose].
|
||||
impl<'source> ::tengri::dsl::Namespace<'source, #state> for #t {
|
||||
fn take_from <'state> (
|
||||
state: &'state #state,
|
||||
impl ::tengri::dsl::Namespace<#state> for #t {
|
||||
fn take_from <'source> (
|
||||
state: &#state,
|
||||
words: &mut ::tengri::dsl::TokenIter<'source>
|
||||
) -> Perhaps<Self> {
|
||||
Ok(Some(match words.next().map(|x|x.value) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue