pub struct Element<T: Render> {
pub is_fragment: bool,
pub tag: String,
pub attributes: BTreeMap<String, AttributeValue>,
pub children: Option<T>,
pub reff: Option<(String, String)>,
pub onclick: Arc<Mutex<Option<OnClickClosure>>>,
}
Fields§
§is_fragment: bool
§tag: String
§attributes: BTreeMap<String, AttributeValue>
§children: Option<T>
§reff: Option<(String, String)>
§onclick: Arc<Mutex<Option<OnClickClosure>>>
Implementations§
Trait Implementations§
Source§impl<T: Render + Clone + 'static> Render for Element<T>
impl<T: Render + Clone + 'static> Render for Element<T>
fn render_node( self, parent: &mut WebElement, map: &mut Hooks, renderables: &mut Renderables, ) -> ElementResult<()>
fn render(&self, w: &mut Vec<String>) -> ElementResult<()>
fn remove_event_listeners(&self) -> ElementResult<()>
fn html(&self) -> String
fn render_tree(self) -> ElementResult<Html>where
Self: Sized,
fn render_tree_into(
self,
parent: &mut Element,
renderables: &mut Renderables,
) -> ElementResult<BTreeMap<String, Element>>where
Self: Sized,
Auto Trait Implementations§
impl<T> Freeze for Element<T>where
T: Freeze,
impl<T> RefUnwindSafe for Element<T>where
T: RefUnwindSafe,
impl<T> !Send for Element<T>
impl<T> !Sync for Element<T>
impl<T> Unpin for Element<T>where
T: Unpin,
impl<T> UnwindSafe for Element<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more