remove edn_ prefix from a couple macros

This commit is contained in:
🪞👃🪞 2025-01-18 00:14:46 +01:00
parent 798de37172
commit 34b35d08be
8 changed files with 25 additions and 25 deletions

View file

@ -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>> {