added C for threading

This commit is contained in:
2024-11-16 16:38:06 +01:00
parent e1da609eb1
commit 74767cf961
13 changed files with 219 additions and 228 deletions
+2 -5
View File
@@ -7,10 +7,7 @@ pub use styles::*;
pub mod elements;
pub use elements::*;
pub fn text<'a>() -> std::sync::Arc<Text<'a>> {
std::sync::Arc::new(Text::new())
}
pub fn div<'a>() -> std::sync::Arc<Div<'a>> {
std::sync::Arc::new(Div::new())
pub fn text<'a>() -> Box<Text<'a>> {
Box::new(Text::new())
}