mirror of
https://codeberg.org/unspeaker/tengri.git
synced 2025-12-07 04:06:48 +01:00
wip: dsl, input, output, proc: more precise lifetimes
Some checks are pending
/ build (push) Waiting to run
Some checks are pending
/ build (push) Waiting to run
This commit is contained in:
parent
22d63eed9c
commit
5e09f5a4bb
11 changed files with 140 additions and 122 deletions
|
|
@ -55,8 +55,10 @@ impl ToTokens for ViewDef {
|
|||
}
|
||||
}
|
||||
/// Generated by [tengri_proc].
|
||||
impl<'a> ::tengri::output::ViewContext<'a, #output> for #ident {
|
||||
fn get_content_sym (&'a self, value: &Value<'a>) -> Option<RenderBox<'a, #output>> {
|
||||
impl<'state> ::tengri::output::ViewContext<'state, #output> for #ident {
|
||||
fn get_content_sym <'source: 'state> (&'state self, value: &Value<'source>)
|
||||
-> Option<RenderBox<'state, #output>>
|
||||
{
|
||||
match value {
|
||||
#(#exposed)*
|
||||
_ => panic!("expected Sym(content), got: {value:?}")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue