pub struct ChildrenOptContainer<T>(pub T);Expand description
Compiler optimisation, can be used with certain type to avoid unique closures in the view!{} macro.
Tuple Fields§
§0: TTrait Implementations§
Source§impl<T> ToChildren<ChildrenOptContainer<T>> for Arc<dyn Fn() -> AnyView + Sync + Send>
impl<T> ToChildren<ChildrenOptContainer<T>> for Arc<dyn Fn() -> AnyView + Sync + Send>
Source§fn to_children(
t: ChildrenOptContainer<T>,
) -> Arc<dyn Fn() -> AnyView + Sync + Send>
fn to_children( t: ChildrenOptContainer<T>, ) -> Arc<dyn Fn() -> AnyView + Sync + Send>
Convert the provided type (generally a closure) to Self (generally a “children” type,
e.g., Children). See the implementations to see exactly which input types are supported
and which “children” type they are converted to.
Source§impl<T> ToChildren<ChildrenOptContainer<T>> for Arc<dyn Fn() -> Fragment + Send>
impl<T> ToChildren<ChildrenOptContainer<T>> for Arc<dyn Fn() -> Fragment + Send>
Source§fn to_children(t: ChildrenOptContainer<T>) -> Arc<dyn Fn() -> Fragment + Send>
fn to_children(t: ChildrenOptContainer<T>) -> Arc<dyn Fn() -> Fragment + Send>
Convert the provided type (generally a closure) to Self (generally a “children” type,
e.g., Children). See the implementations to see exactly which input types are supported
and which “children” type they are converted to.
Source§impl<T> ToChildren<ChildrenOptContainer<T>> for Box<dyn Fn() -> AnyView + Send>
impl<T> ToChildren<ChildrenOptContainer<T>> for Box<dyn Fn() -> AnyView + Send>
Source§fn to_children(t: ChildrenOptContainer<T>) -> Box<dyn Fn() -> AnyView + Send>
fn to_children(t: ChildrenOptContainer<T>) -> Box<dyn Fn() -> AnyView + Send>
Convert the provided type (generally a closure) to Self (generally a “children” type,
e.g., Children). See the implementations to see exactly which input types are supported
and which “children” type they are converted to.
Source§impl<T> ToChildren<ChildrenOptContainer<T>> for Box<dyn FnMut() -> AnyView + Send>
impl<T> ToChildren<ChildrenOptContainer<T>> for Box<dyn FnMut() -> AnyView + Send>
Source§fn to_children(t: ChildrenOptContainer<T>) -> Box<dyn FnMut() -> AnyView + Send>
fn to_children(t: ChildrenOptContainer<T>) -> Box<dyn FnMut() -> AnyView + Send>
Convert the provided type (generally a closure) to Self (generally a “children” type,
e.g., Children). See the implementations to see exactly which input types are supported
and which “children” type they are converted to.
Source§impl<T> ToChildren<ChildrenOptContainer<T>> for Box<dyn FnMut() -> Fragment + Send>
impl<T> ToChildren<ChildrenOptContainer<T>> for Box<dyn FnMut() -> Fragment + Send>
Source§fn to_children(
t: ChildrenOptContainer<T>,
) -> Box<dyn FnMut() -> Fragment + Send>
fn to_children( t: ChildrenOptContainer<T>, ) -> Box<dyn FnMut() -> Fragment + Send>
Convert the provided type (generally a closure) to Self (generally a “children” type,
e.g., Children). See the implementations to see exactly which input types are supported
and which “children” type they are converted to.
Source§impl<T> ToChildren<ChildrenOptContainer<T>> for Box<dyn FnOnce() -> AnyView + Send>
impl<T> ToChildren<ChildrenOptContainer<T>> for Box<dyn FnOnce() -> AnyView + Send>
Source§fn to_children(
t: ChildrenOptContainer<T>,
) -> Box<dyn FnOnce() -> AnyView + Send>
fn to_children( t: ChildrenOptContainer<T>, ) -> Box<dyn FnOnce() -> AnyView + Send>
Convert the provided type (generally a closure) to Self (generally a “children” type,
e.g., Children). See the implementations to see exactly which input types are supported
and which “children” type they are converted to.
Source§impl<T> ToChildren<ChildrenOptContainer<T>> for Box<dyn FnOnce() -> Fragment + Send>
impl<T> ToChildren<ChildrenOptContainer<T>> for Box<dyn FnOnce() -> Fragment + Send>
Source§fn to_children(
t: ChildrenOptContainer<T>,
) -> Box<dyn FnOnce() -> Fragment + Send>
fn to_children( t: ChildrenOptContainer<T>, ) -> Box<dyn FnOnce() -> Fragment + Send>
Convert the provided type (generally a closure) to Self (generally a “children” type,
e.g., Children). See the implementations to see exactly which input types are supported
and which “children” type they are converted to.
Source§impl<T> ToChildren<ChildrenOptContainer<T>> for TypedChildren<T>where
T: IntoView + 'static,
impl<T> ToChildren<ChildrenOptContainer<T>> for TypedChildren<T>where
T: IntoView + 'static,
Source§fn to_children(t: ChildrenOptContainer<T>) -> TypedChildren<T>
fn to_children(t: ChildrenOptContainer<T>) -> TypedChildren<T>
Convert the provided type (generally a closure) to Self (generally a “children” type,
e.g., Children). See the implementations to see exactly which input types are supported
and which “children” type they are converted to.
Source§impl<T> ToChildren<ChildrenOptContainer<T>> for TypedChildrenFn<T>
impl<T> ToChildren<ChildrenOptContainer<T>> for TypedChildrenFn<T>
Source§fn to_children(t: ChildrenOptContainer<T>) -> TypedChildrenFn<T>
fn to_children(t: ChildrenOptContainer<T>) -> TypedChildrenFn<T>
Convert the provided type (generally a closure) to Self (generally a “children” type,
e.g., Children). See the implementations to see exactly which input types are supported
and which “children” type they are converted to.
Source§impl<T> ToChildren<ChildrenOptContainer<T>> for TypedChildrenMut<T>
impl<T> ToChildren<ChildrenOptContainer<T>> for TypedChildrenMut<T>
Source§fn to_children(t: ChildrenOptContainer<T>) -> TypedChildrenMut<T>
fn to_children(t: ChildrenOptContainer<T>) -> TypedChildrenMut<T>
Convert the provided type (generally a closure) to Self (generally a “children” type,
e.g., Children). See the implementations to see exactly which input types are supported
and which “children” type they are converted to.
Auto Trait Implementations§
impl<T> Freeze for ChildrenOptContainer<T>where
T: Freeze,
impl<T> RefUnwindSafe for ChildrenOptContainer<T>where
T: RefUnwindSafe,
impl<T> Send for ChildrenOptContainer<T>where
T: Send,
impl<T> Sync for ChildrenOptContainer<T>where
T: Sync,
impl<T> Unpin for ChildrenOptContainer<T>where
T: Unpin,
impl<T> UnwindSafe for ChildrenOptContainer<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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> SerializableKey for T
impl<T> SerializableKey for T
Source§impl<T> StorageAccess<T> for T
impl<T> StorageAccess<T> for T
Source§fn as_borrowed(&self) -> &T
fn as_borrowed(&self) -> &T
Borrows the value.
Source§fn into_taken(self) -> T
fn into_taken(self) -> T
Takes the value.