pub struct Element { /* private fields */ }
Expand description
§Why not react_sys::Element
react_sys::Element
, created from ReactJs,
can be cloned freely.
However, when it is created from frender component, it contains data from rust, which can’t be stored in react_sys::Element.
Due to the same reason, Element
implements From<react_sys::Element>
but not Into<react_sys::Element>
Implementations§
Source§impl Element
impl Element
pub fn from_js_element(el: Element) -> Self
pub fn bridge_use_render<E: IntoOptionalElement, F: 'static + Fn() -> E>( use_render: F, key: Option<Key>, debug_component_name: Option<JsValue>, debug_props: Option<JsValue>, ) -> Self
pub fn bridge_use_render_element(el: UseRenderElement) -> Self
pub fn bridge_js(js: JsBridgeElement) -> Self
pub fn fragment(fe: FragmentElement) -> Self
Trait Implementations§
Source§impl Into<Element> for FragmentElement
impl Into<Element> for FragmentElement
Source§impl Into<Element> for JsBridgeElement
impl Into<Element> for JsBridgeElement
Source§impl Into<Element> for UseRenderElement
impl Into<Element> for UseRenderElement
Source§impl IntoElement for Element
impl IntoElement for Element
fn into_element(self) -> Element
Auto Trait Implementations§
impl Freeze for Element
impl !RefUnwindSafe for Element
impl !Send for Element
impl !Sync for Element
impl Unpin for Element
impl !UnwindSafe for Element
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