added rebuild and Arc insted of Box
This commit is contained in:
+6
-2
@@ -7,6 +7,10 @@ pub use styles::*;
|
||||
pub mod elements;
|
||||
pub use elements::*;
|
||||
|
||||
pub fn text<'a>() -> Box<Text<'a>> {
|
||||
Box::new(Text::new())
|
||||
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())
|
||||
}
|
||||
Reference in New Issue
Block a user