mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-06 19:56:42 +01:00
remove edn_ prefix from a couple macros
This commit is contained in:
parent
798de37172
commit
34b35d08be
8 changed files with 25 additions and 25 deletions
|
|
@ -5,7 +5,7 @@ use std::{sync::Arc, marker::PhantomData};
|
|||
/// This consists of:
|
||||
/// * render callback (implementation of [Content])
|
||||
/// * value providers (implementations of [Context])
|
||||
#[macro_export] macro_rules! edn_view {
|
||||
#[macro_export] macro_rules! view {
|
||||
($Output:ty: |$self:ident: $App:ty| $content:expr; {
|
||||
$( $type:ty { $($sym:literal => $value:expr),* } );*
|
||||
}) => {
|
||||
|
|
@ -22,7 +22,7 @@ use std::{sync::Arc, marker::PhantomData};
|
|||
}
|
||||
}
|
||||
/// Implements `Context` for content components and expressions
|
||||
#[macro_export] macro_rules! edn_provide_content {
|
||||
#[macro_export] macro_rules! provide_content {
|
||||
(|$self:ident:$State:ty|{ $($pat:pat => $expr:expr),* $(,)? }) => {
|
||||
impl<'a, E: Output> Context<'a, Box<dyn Render<E> + 'a>> for $State {
|
||||
fn get (&'a $self, edn: &'a impl Atom<'a>) -> Option<Box<dyn Render<E> + 'a>> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue