pub struct AnyNodeValue { /* private fields */ }
Expand description
A number
, string
, boolean
or Array<ReactNode>
that are not elements
but valid ReactNode
Implementations§
Source§impl AnyNodeValue
impl AnyNodeValue
Sourcepub unsafe fn from_js_react_node(js_value: JsValue) -> Self
pub unsafe fn from_js_react_node(js_value: JsValue) -> Self
§Safety:
Please make sure the js value is a valid ReactNode
Trait Implementations§
Source§impl AsRef<JsValue> for AnyNodeValue
impl AsRef<JsValue> for AnyNodeValue
Source§impl Clone for AnyNodeValue
impl Clone for AnyNodeValue
Source§fn clone(&self) -> AnyNodeValue
fn clone(&self) -> AnyNodeValue
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for AnyNodeValue
impl Debug for AnyNodeValue
Auto Trait Implementations§
impl Freeze for AnyNodeValue
impl RefUnwindSafe for AnyNodeValue
impl !Send for AnyNodeValue
impl !Sync for AnyNodeValue
impl Unpin for AnyNodeValue
impl UnwindSafe for AnyNodeValue
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