Enum VNode

Source
#[non_exhaustive]
pub enum VNode { Single(JsValue), List(Array), }
Expand description

Represents a node in the virtual DOM of React.

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

Single(JsValue)

Represents a single virtual node.

§

List(Array)

Represents an array of virtual nodes.

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, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z> From<(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z)> for VNode
where 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>, Q: Into<VNode>, R: Into<VNode>, S: Into<VNode>, T: Into<VNode>, U: Into<VNode>, V: Into<VNode>, W: Into<VNode>, X: Into<VNode>, Y: Into<VNode>, Z: Into<VNode>,

Source§

fn from( (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z): (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z), ) -> VNode

Converts to this type from the input type.
Source§

impl<B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z> From<(B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z)> for VNode
where 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>, Q: Into<VNode>, R: Into<VNode>, S: Into<VNode>, T: Into<VNode>, U: Into<VNode>, V: Into<VNode>, W: Into<VNode>, X: Into<VNode>, Y: Into<VNode>, Z: Into<VNode>,

Source§

fn from( (B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z): (B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z), ) -> VNode

Converts to this type from the input type.
Source§

impl<C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z> From<(C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z)> for VNode
where 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>, Q: Into<VNode>, R: Into<VNode>, S: Into<VNode>, T: Into<VNode>, U: Into<VNode>, V: Into<VNode>, W: Into<VNode>, X: Into<VNode>, Y: Into<VNode>, Z: Into<VNode>,

Source§

fn from( (C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z): (C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z), ) -> VNode

Converts to this type from the input type.
Source§

impl<D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z> From<(D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z)> for VNode
where 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>, Q: Into<VNode>, R: Into<VNode>, S: Into<VNode>, T: Into<VNode>, U: Into<VNode>, V: Into<VNode>, W: Into<VNode>, X: Into<VNode>, Y: Into<VNode>, Z: Into<VNode>,

Source§

fn from( (D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z): (D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z), ) -> VNode

Converts to this type from the input type.
Source§

impl<E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z> From<(E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z)> for VNode
where 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>, Q: Into<VNode>, R: Into<VNode>, S: Into<VNode>, T: Into<VNode>, U: Into<VNode>, V: Into<VNode>, W: Into<VNode>, X: Into<VNode>, Y: Into<VNode>, Z: Into<VNode>,

Source§

fn from( (E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z): (E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z), ) -> VNode

Converts to this type from the input type.
Source§

impl<F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z> From<(F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z)> for VNode
where 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>, Q: Into<VNode>, R: Into<VNode>, S: Into<VNode>, T: Into<VNode>, U: Into<VNode>, V: Into<VNode>, W: Into<VNode>, X: Into<VNode>, Y: Into<VNode>, Z: Into<VNode>,

Source§

fn from( (F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z): (F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z), ) -> VNode

Converts to this type from the input type.
Source§

impl<G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z> From<(G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z)> for VNode
where 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>, Q: Into<VNode>, R: Into<VNode>, S: Into<VNode>, T: Into<VNode>, U: Into<VNode>, V: Into<VNode>, W: Into<VNode>, X: Into<VNode>, Y: Into<VNode>, Z: Into<VNode>,

Source§

fn from( (G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z): (G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z), ) -> VNode

Converts to this type from the input type.
Source§

impl<H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z> From<(H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z)> for VNode
where 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>, Q: Into<VNode>, R: Into<VNode>, S: Into<VNode>, T: Into<VNode>, U: Into<VNode>, V: Into<VNode>, W: Into<VNode>, X: Into<VNode>, Y: Into<VNode>, Z: Into<VNode>,

Source§

fn from( (H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z): (H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z), ) -> VNode

Converts to this type from the input type.
Source§

impl<I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z> From<(I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z)> for VNode
where I: Into<VNode>, J: Into<VNode>, K: Into<VNode>, L: Into<VNode>, M: Into<VNode>, N: Into<VNode>, O: Into<VNode>, P: Into<VNode>, Q: Into<VNode>, R: Into<VNode>, S: Into<VNode>, T: Into<VNode>, U: Into<VNode>, V: Into<VNode>, W: Into<VNode>, X: Into<VNode>, Y: Into<VNode>, Z: Into<VNode>,

Source§

fn from( (I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z): (I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z), ) -> VNode

Converts to this type from the input type.
Source§

impl<J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z> From<(J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z)> for VNode
where J: Into<VNode>, K: Into<VNode>, L: Into<VNode>, M: Into<VNode>, N: Into<VNode>, O: Into<VNode>, P: Into<VNode>, Q: Into<VNode>, R: Into<VNode>, S: Into<VNode>, T: Into<VNode>, U: Into<VNode>, V: Into<VNode>, W: Into<VNode>, X: Into<VNode>, Y: Into<VNode>, Z: Into<VNode>,

Source§

fn from( (J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z): (J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z), ) -> VNode

Converts to this type from the input type.
Source§

impl<K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z> From<(K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z)> for VNode
where K: Into<VNode>, L: Into<VNode>, M: Into<VNode>, N: Into<VNode>, O: Into<VNode>, P: Into<VNode>, Q: Into<VNode>, R: Into<VNode>, S: Into<VNode>, T: Into<VNode>, U: Into<VNode>, V: Into<VNode>, W: Into<VNode>, X: Into<VNode>, Y: Into<VNode>, Z: Into<VNode>,

Source§

fn from( (K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z): (K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z), ) -> VNode

Converts to this type from the input type.
Source§

impl<L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z> From<(L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z)> for VNode
where L: Into<VNode>, M: Into<VNode>, N: Into<VNode>, O: Into<VNode>, P: Into<VNode>, Q: Into<VNode>, R: Into<VNode>, S: Into<VNode>, T: Into<VNode>, U: Into<VNode>, V: Into<VNode>, W: Into<VNode>, X: Into<VNode>, Y: Into<VNode>, Z: Into<VNode>,

Source§

fn from( (L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z): (L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z), ) -> VNode

Converts to this type from the input type.
Source§

impl<M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z> From<(M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z)> for VNode
where M: Into<VNode>, N: Into<VNode>, O: Into<VNode>, P: Into<VNode>, Q: Into<VNode>, R: Into<VNode>, S: Into<VNode>, T: Into<VNode>, U: Into<VNode>, V: Into<VNode>, W: Into<VNode>, X: Into<VNode>, Y: Into<VNode>, Z: Into<VNode>,

Source§

fn from( (M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z): (M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z), ) -> VNode

Converts to this type from the input type.
Source§

impl<N, O, P, Q, R, S, T, U, V, W, X, Y, Z> From<(N, O, P, Q, R, S, T, U, V, W, X, Y, Z)> for VNode
where N: Into<VNode>, O: Into<VNode>, P: Into<VNode>, Q: Into<VNode>, R: Into<VNode>, S: Into<VNode>, T: Into<VNode>, U: Into<VNode>, V: Into<VNode>, W: Into<VNode>, X: Into<VNode>, Y: Into<VNode>, Z: Into<VNode>,

Source§

fn from( (N, O, P, Q, R, S, T, U, V, W, X, Y, Z): (N, O, P, Q, R, S, T, U, V, W, X, Y, Z), ) -> VNode

Converts to this type from the input type.
Source§

impl<O, P, Q, R, S, T, U, V, W, X, Y, Z> From<(O, P, Q, R, S, T, U, V, W, X, Y, Z)> for VNode
where O: Into<VNode>, P: Into<VNode>, Q: Into<VNode>, R: Into<VNode>, S: Into<VNode>, T: Into<VNode>, U: Into<VNode>, V: Into<VNode>, W: Into<VNode>, X: Into<VNode>, Y: Into<VNode>, Z: Into<VNode>,

Source§

fn from( (O, P, Q, R, S, T, U, V, W, X, Y, Z): (O, P, Q, R, S, T, U, V, W, X, Y, Z), ) -> VNode

Converts to this type from the input type.
Source§

impl<P, Q, R, S, T, U, V, W, X, Y, Z> From<(P, Q, R, S, T, U, V, W, X, Y, Z)> for VNode
where P: Into<VNode>, Q: Into<VNode>, R: Into<VNode>, S: Into<VNode>, T: Into<VNode>, U: Into<VNode>, V: Into<VNode>, W: Into<VNode>, X: Into<VNode>, Y: Into<VNode>, Z: Into<VNode>,

Source§

fn from( (P, Q, R, S, T, U, V, W, X, Y, Z): (P, Q, R, S, T, U, V, W, X, Y, Z), ) -> VNode

Converts to this type from the input type.
Source§

impl<Q, R, S, T, U, V, W, X, Y, Z> From<(Q, R, S, T, U, V, W, X, Y, Z)> for VNode
where Q: Into<VNode>, R: Into<VNode>, S: Into<VNode>, T: Into<VNode>, U: Into<VNode>, V: Into<VNode>, W: Into<VNode>, X: Into<VNode>, Y: Into<VNode>, Z: Into<VNode>,

Source§

fn from((Q, R, S, T, U, V, W, X, Y, Z): (Q, R, S, T, U, V, W, X, Y, Z)) -> VNode

Converts to this type from the input type.
Source§

impl<R, S, T, U, V, W, X, Y, Z> From<(R, S, T, U, V, W, X, Y, Z)> for VNode
where R: Into<VNode>, S: Into<VNode>, T: Into<VNode>, U: Into<VNode>, V: Into<VNode>, W: Into<VNode>, X: Into<VNode>, Y: Into<VNode>, Z: Into<VNode>,

Source§

fn from((R, S, T, U, V, W, X, Y, Z): (R, S, T, U, V, W, X, Y, Z)) -> VNode

Converts to this type from the input type.
Source§

impl<S, T, U, V, W, X, Y, Z> From<(S, T, U, V, W, X, Y, Z)> for VNode
where S: Into<VNode>, T: Into<VNode>, U: Into<VNode>, V: Into<VNode>, W: Into<VNode>, X: Into<VNode>, Y: Into<VNode>, Z: Into<VNode>,

Source§

fn from((S, T, U, V, W, X, Y, Z): (S, T, U, V, W, X, Y, Z)) -> VNode

Converts to this type from the input type.
Source§

impl<T, U, V, W, X, Y, Z> From<(T, U, V, W, X, Y, Z)> for VNode
where T: Into<VNode>, U: Into<VNode>, V: Into<VNode>, W: Into<VNode>, X: Into<VNode>, Y: Into<VNode>, Z: Into<VNode>,

Source§

fn from((T, U, V, W, X, Y, Z): (T, U, V, W, X, Y, Z)) -> VNode

Converts to this type from the input type.
Source§

impl<U, V, W, X, Y, Z> From<(U, V, W, X, Y, Z)> for VNode
where U: Into<VNode>, V: Into<VNode>, W: Into<VNode>, X: Into<VNode>, Y: Into<VNode>, Z: Into<VNode>,

Source§

fn from((U, V, W, X, Y, Z): (U, V, W, X, Y, Z)) -> VNode

Converts to this type from the input type.
Source§

impl<V, W, X, Y, Z> From<(V, W, X, Y, Z)> for VNode
where V: Into<VNode>, W: Into<VNode>, X: Into<VNode>, Y: Into<VNode>, Z: Into<VNode>,

Source§

fn from((V, W, X, Y, Z): (V, W, X, Y, Z)) -> VNode

Converts to this type from the input type.
Source§

impl<W, X, Y, Z> From<(W, X, Y, Z)> for VNode
where W: Into<VNode>, X: Into<VNode>, Y: Into<VNode>, Z: Into<VNode>,

Source§

fn from((W, X, Y, Z): (W, X, Y, Z)) -> VNode

Converts to this type from the input type.
Source§

impl<X, Y, Z> From<(X, Y, Z)> for VNode
where X: Into<VNode>, Y: Into<VNode>, Z: Into<VNode>,

Source§

fn from((X, Y, Z): (X, Y, Z)) -> VNode

Converts to this type from the input type.
Source§

impl<Y, Z> From<(Y, Z)> for VNode
where Y: Into<VNode>, Z: Into<VNode>,

Source§

fn from((Y, Z): (Y, Z)) -> VNode

Converts to this type from the input type.
Source§

impl<Z> From<(Z,)> for VNode
where Z: Into<VNode>,

Source§

fn from((Z): (Z,)) -> 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 Freeze for VNode

§

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 T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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 T
where 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 T
where T: Clone,

Source§

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 T
where U: Into<T>,

Source§

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 T
where U: TryFrom<T>,

Source§

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.