Enum wasm_react::VNode

source ·
pub enum VNode {
    // some variants omitted
}
Expand description

Represents a node in the virtual DOM of React.

Implementations§

source§

impl VNode

source

pub fn new() -> VNode

Creates an empty node that doesn’t render anything.

source

pub fn push(&mut self, node: &VNode)

Adds the given node to the list.

Trait Implementations§

source§

impl AsRef<JsValue> for VNode

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl Clone for VNode

source§

fn clone(&self) -> VNode

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for VNode

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for VNode

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Extend<VNode> for VNode

source§

fn extend<T: IntoIterator<Item = VNode>>(&mut self, iter: T)

Extends a collection with the contents of an iterator. Read more
source§

fn extend_one(&mut self, item: A)

🔬This is a nightly-only experimental API. (extend_one)
Extends a collection with exactly one element.
source§

fn extend_reserve(&mut self, additional: usize)

🔬This is a nightly-only experimental API. (extend_one)
Reserves capacity in a collection for the given number of additional elements. Read more
source§

impl From<&str> for VNode

source§

fn from(value: &str) -> Self

Converts to this type from the input type.
source§

impl From<()> for VNode

source§

fn from(_: ()) -> Self

Converts to this type from the input type.
source§

impl<A> From<(A,)> for VNodewhere A: Into<VNode>,

source§

fn from((A): (A,)) -> VNode

Converts to this type from the input type.
source§

impl<A, B> From<(A, B)> for VNodewhere A: Into<VNode>, B: Into<VNode>,

source§

fn from((A, B): (A, B)) -> VNode

Converts to this type from the input type.
source§

impl<A, B, C> From<(A, B, C)> for VNodewhere A: Into<VNode>, B: Into<VNode>, C: Into<VNode>,

source§

fn from((A, B, C): (A, B, C)) -> VNode

Converts to this type from the input type.
source§

impl<A, B, C, D> From<(A, B, C, D)> for VNodewhere A: Into<VNode>, B: Into<VNode>, C: Into<VNode>, D: Into<VNode>,

source§

fn from((A, B, C, D): (A, B, C, D)) -> VNode

Converts to this type from the input type.
source§

impl<A, B, C, D, E> From<(A, B, C, D, E)> for VNodewhere A: Into<VNode>, B: Into<VNode>, C: Into<VNode>, D: Into<VNode>, E: Into<VNode>,

source§

fn from((A, B, C, D, E): (A, B, C, D, E)) -> VNode

Converts to this type from the input type.
source§

impl<A, B, C, D, E, F> From<(A, B, C, D, E, F)> for VNodewhere A: Into<VNode>, B: Into<VNode>, C: Into<VNode>, D: Into<VNode>, E: Into<VNode>, F: Into<VNode>,

source§

fn from((A, B, C, D, E, F): (A, B, C, D, E, F)) -> VNode

Converts to this type from the input type.
source§

impl<A, B, C, D, E, F, G> From<(A, B, C, D, E, F, G)> for VNodewhere A: Into<VNode>, B: Into<VNode>, C: Into<VNode>, D: Into<VNode>, E: Into<VNode>, F: Into<VNode>, G: Into<VNode>,

source§

fn from((A, B, C, D, E, F, G): (A, B, C, D, E, F, G)) -> VNode

Converts to this type from the input type.
source§

impl<A, B, C, D, E, F, G, H> From<(A, B, C, D, E, F, G, H)> for VNodewhere A: Into<VNode>, B: Into<VNode>, C: Into<VNode>, D: Into<VNode>, E: Into<VNode>, F: Into<VNode>, G: Into<VNode>, H: Into<VNode>,

source§

fn from((A, B, C, D, E, F, G, H): (A, B, C, D, E, F, G, H)) -> VNode

Converts to this type from the input type.
source§

impl<A, B, C, D, E, F, G, H, I> From<(A, B, C, D, E, F, G, H, I)> for VNodewhere A: Into<VNode>, B: Into<VNode>, C: Into<VNode>, D: Into<VNode>, E: Into<VNode>, F: Into<VNode>, G: Into<VNode>, H: Into<VNode>, I: Into<VNode>,

source§

fn from((A, B, C, D, E, F, G, H, I): (A, B, C, D, E, F, G, H, I)) -> VNode

Converts to this type from the input type.
source§

impl<A, B, C, D, E, F, G, H, I, J> From<(A, B, C, D, E, F, G, H, I, J)> for VNodewhere A: Into<VNode>, B: Into<VNode>, C: Into<VNode>, D: Into<VNode>, E: Into<VNode>, F: Into<VNode>, G: Into<VNode>, H: Into<VNode>, I: Into<VNode>, J: Into<VNode>,

source§

fn from((A, B, C, D, E, F, G, H, I, J): (A, B, C, D, E, F, G, H, I, J)) -> VNode

Converts to this type from the input type.
source§

impl<A, B, C, D, E, F, G, H, I, J, K> From<(A, B, C, D, E, F, G, H, I, J, K)> for VNodewhere A: Into<VNode>, B: Into<VNode>, C: Into<VNode>, D: Into<VNode>, E: Into<VNode>, F: Into<VNode>, G: Into<VNode>, H: Into<VNode>, I: Into<VNode>, J: Into<VNode>, K: Into<VNode>,

source§

fn from( (A, B, C, D, E, F, G, H, I, J, K): (A, B, C, D, E, F, G, H, I, J, K) ) -> VNode

Converts to this type from the input type.
source§

impl<A, B, C, D, E, F, G, H, I, J, K, L> From<(A, B, C, D, E, F, G, H, I, J, K, L)> for VNodewhere A: Into<VNode>, B: Into<VNode>, C: Into<VNode>, D: Into<VNode>, E: Into<VNode>, F: Into<VNode>, G: Into<VNode>, H: Into<VNode>, I: Into<VNode>, J: Into<VNode>, K: Into<VNode>, L: Into<VNode>,

source§

fn from( (A, B, C, D, E, F, G, H, I, J, K, L): (A, B, C, D, E, F, G, H, I, J, K, L) ) -> VNode

Converts to this type from the input type.
source§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M> From<(A, B, C, D, E, F, G, H, I, J, K, L, M)> for VNodewhere A: Into<VNode>, B: Into<VNode>, C: Into<VNode>, D: Into<VNode>, E: Into<VNode>, F: Into<VNode>, G: Into<VNode>, H: Into<VNode>, I: Into<VNode>, J: Into<VNode>, K: Into<VNode>, L: Into<VNode>, M: Into<VNode>,

source§

fn from( (A, B, C, D, E, F, G, H, I, J, K, L, M): (A, B, C, D, E, F, G, H, I, J, K, L, M) ) -> VNode

Converts to this type from the input type.
source§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N> From<(A, B, C, D, E, F, G, H, I, J, K, L, M, N)> for VNodewhere A: Into<VNode>, B: Into<VNode>, C: Into<VNode>, D: Into<VNode>, E: Into<VNode>, F: Into<VNode>, G: Into<VNode>, H: Into<VNode>, I: Into<VNode>, J: Into<VNode>, K: Into<VNode>, L: Into<VNode>, M: Into<VNode>, N: Into<VNode>,

source§

fn from( (A, B, C, D, E, F, G, H, I, J, K, L, M, N): (A, B, C, D, E, F, G, H, I, J, K, L, M, N) ) -> VNode

Converts to this type from the input type.
source§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O> From<(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O)> for VNodewhere A: Into<VNode>, B: Into<VNode>, C: Into<VNode>, D: Into<VNode>, E: Into<VNode>, F: Into<VNode>, G: Into<VNode>, H: Into<VNode>, I: Into<VNode>, J: Into<VNode>, K: Into<VNode>, L: Into<VNode>, M: Into<VNode>, N: Into<VNode>, O: Into<VNode>,

source§

fn from( (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O): (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O) ) -> VNode

Converts to this type from the input type.
source§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P> From<(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P)> for VNodewhere A: Into<VNode>, B: Into<VNode>, C: Into<VNode>, D: Into<VNode>, E: Into<VNode>, F: Into<VNode>, G: Into<VNode>, H: Into<VNode>, I: Into<VNode>, J: Into<VNode>, K: Into<VNode>, L: Into<VNode>, M: Into<VNode>, N: Into<VNode>, O: Into<VNode>, P: Into<VNode>,

source§

fn from( (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P): (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P) ) -> VNode

Converts to this type from the input type.
source§

impl From<JsString> for VNode

source§

fn from(value: JsString) -> Self

Converts to this type from the input type.
source§

impl<T: Into<VNode>> From<Option<T>> for VNode

source§

fn from(value: Option<T>) -> Self

Converts to this type from the input type.
source§

impl From<String> for VNode

source§

fn from(value: String) -> Self

Converts to this type from the input type.
source§

impl From<VNode> for JsValue

source§

fn from(value: VNode) -> Self

Converts to this type from the input type.
source§

impl From<f32> for VNode

source§

fn from(value: f32) -> Self

Converts to this type from the input type.
source§

impl From<f64> for VNode

source§

fn from(value: f64) -> Self

Converts to this type from the input type.
source§

impl From<i128> for VNode

source§

fn from(value: i128) -> Self

Converts to this type from the input type.
source§

impl From<i16> for VNode

source§

fn from(value: i16) -> Self

Converts to this type from the input type.
source§

impl From<i32> for VNode

source§

fn from(value: i32) -> Self

Converts to this type from the input type.
source§

impl From<i64> for VNode

source§

fn from(value: i64) -> Self

Converts to this type from the input type.
source§

impl From<i8> for VNode

source§

fn from(value: i8) -> Self

Converts to this type from the input type.
source§

impl From<isize> for VNode

source§

fn from(value: isize) -> Self

Converts to this type from the input type.
source§

impl From<u128> for VNode

source§

fn from(value: u128) -> Self

Converts to this type from the input type.
source§

impl From<u16> for VNode

source§

fn from(value: u16) -> Self

Converts to this type from the input type.
source§

impl From<u32> for VNode

source§

fn from(value: u32) -> Self

Converts to this type from the input type.
source§

impl From<u64> for VNode

source§

fn from(value: u64) -> Self

Converts to this type from the input type.
source§

impl From<u8> for VNode

source§

fn from(value: u8) -> Self

Converts to this type from the input type.
source§

impl From<usize> for VNode

source§

fn from(value: usize) -> Self

Converts to this type from the input type.
source§

impl FromIterator<VNode> for VNode

source§

fn from_iter<T: IntoIterator<Item = VNode>>(iter: T) -> Self

Creates a value from an iterator. Read more

Auto Trait Implementations§

§

impl RefUnwindSafe for VNode

§

impl !Send for VNode

§

impl !Sync for VNode

§

impl Unpin for VNode

§

impl UnwindSafe for VNode

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.