Move self in Element::paint
Remove mutable state borrows in favor of state ownership in render processes to streamline element rendering.
This commit is contained in:
parent
0069dd5ce6
commit
2515bbf990
15 changed files with 262 additions and 231 deletions
|
@ -1,5 +1,6 @@
|
|||
mod action;
|
||||
mod derive_component;
|
||||
mod derive_element;
|
||||
mod register_action;
|
||||
mod style_helpers;
|
||||
mod test;
|
||||
|
@ -26,6 +27,11 @@ pub fn derive_component(input: TokenStream) -> TokenStream {
|
|||
derive_component::derive_component(input)
|
||||
}
|
||||
|
||||
// #[proc_macro_derive(Element)]
|
||||
// pub fn derive_element(input: TokenStream) -> TokenStream {
|
||||
// derive_element::derive_element(input)
|
||||
// }
|
||||
|
||||
#[proc_macro_attribute]
|
||||
pub fn test(args: TokenStream, function: TokenStream) -> TokenStream {
|
||||
test::test(args, function)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue