pub struct Fragment;
Trait Implementations§
Source§impl ComponentStatic for Fragment
impl ComponentStatic for Fragment
type Props = OptionalChildrenProps
Source§type Element = FragmentElement
type Element = FragmentElement
fn create_element(props: Self::Props, key: Option<Key>) -> Self::Element
Source§impl UseRenderStatic for Fragment
impl UseRenderStatic for Fragment
type RenderArg = OptionalChildrenProps
Source§type RenderOutput = FragmentElement
type RenderOutput = FragmentElement
See [
UseRender::Output
]fn use_render(props: &Self::RenderArg) -> Self::RenderOutput
Auto Trait Implementations§
impl Freeze for Fragment
impl RefUnwindSafe for Fragment
impl Send for Fragment
impl Sync for Fragment
impl Unpin for Fragment
impl UnwindSafe for Fragment
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> Component for Twhere
T: ComponentStatic,
impl<T> Component for Twhere
T: ComponentStatic,
type Props = <T as ComponentStatic>::Props
Source§type Element = <T as ComponentStatic>::Element
type Element = <T as ComponentStatic>::Element
Output of
create_element
.
Many components may return Option<Element>
in UseRender::use_render
while return Element
in create_element.
Thus this type parameter exists.fn create_element( self, props: <T as Component>::Props, key: Option<Key>, ) -> <T as Component>::Element
Source§impl<T> IntoOptionalRc<T> for T
impl<T> IntoOptionalRc<T> for T
fn into_optional_rc(self) -> Option<Rc<T>>
Source§impl<R> IntoPropValue<Option<R>> for R
impl<R> IntoPropValue<Option<R>> for R
fn into_prop_value(self) -> Option<R>
Source§impl<R> IntoPropValue<R> for R
impl<R> IntoPropValue<R> for R
fn into_prop_value(self) -> R
Source§impl<T> IntoRefValue<Box<T>> for T
impl<T> IntoRefValue<Box<T>> for T
fn into_ref_value(self) -> Box<T>
Source§impl<T> IntoRefValue<Rc<T>> for T
impl<T> IntoRefValue<Rc<T>> for T
fn into_ref_value(self) -> Rc<T>
Source§impl<T> IntoRefValue<T> for T
impl<T> IntoRefValue<T> for T
fn into_ref_value(self) -> T
Source§impl<T> UseRender for Twhere
T: UseRenderStatic,
impl<T> UseRender for Twhere
T: UseRenderStatic,
type RenderArg = <T as UseRenderStatic>::RenderArg
Source§type RenderOutput = <T as UseRenderStatic>::RenderOutput
type RenderOutput = <T as UseRenderStatic>::RenderOutput
This allows implementor type to specify
a custom type as the return type of the methods. Read more