pub struct Renderer<COMP>where
COMP: BaseComponent + 'static,{ /* private fields */ }Expand description
The Yew Renderer.
This is the main entry point of a Yew application.
Implementationsยง
Sourceยงimpl<COMP> Renderer<COMP>where
COMP: BaseComponent + 'static,
impl<COMP> Renderer<COMP>where
COMP: BaseComponent + 'static,
Sourcepub fn with_props(props: <COMP as BaseComponent>::Properties) -> Renderer<COMP>
pub fn with_props(props: <COMP as BaseComponent>::Properties) -> Renderer<COMP>
Creates a Renderer that renders into the document body with custom properties.
Sourcepub fn with_root_and_props(
root: Element,
props: <COMP as BaseComponent>::Properties,
) -> Renderer<COMP>
pub fn with_root_and_props( root: Element, props: <COMP as BaseComponent>::Properties, ) -> Renderer<COMP>
Creates a Renderer that renders into a custom root with custom properties.
Trait Implementationsยง
Auto Trait Implementationsยง
impl<COMP> !Send for Renderer<COMP>
impl<COMP> !Sync for Renderer<COMP>
impl<COMP> Freeze for Renderer<COMP>
impl<COMP> RefUnwindSafe for Renderer<COMP>
impl<COMP> Unpin for Renderer<COMP>
impl<COMP> UnsafeUnpin for Renderer<COMP>
impl<COMP> UnwindSafe for Renderer<COMP>
Blanket Implementationsยง
impl<Token, Builder, How> AllPropsFor<Builder, How> for Tokenwhere
Builder: Buildable<Token>,
<Builder as Buildable<Token>>::WrappedToken: HasAllProps<<Builder as Buildable<Token>>::Output, How>,
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
impl<T> HasAllProps<(), T> for T
Sourceยงimpl<T> Instrument for T
impl<T> Instrument for T
Sourceยงfn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Sourceยงfn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Sourceยงimpl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
Sourceยงfn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert
self to a value of a Properties struct.Sourceยงimpl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
Sourceยงfn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert
self to a value of a Properties struct.