pub struct Renderer<COMP>where
COMP: BaseComponent + 'static,{ /* private fields */ }
Available on crate feature
csr
only.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,
source§impl<COMP> Renderer<COMP>where
COMP: BaseComponent + 'static,
impl<COMP> Renderer<COMP>where
COMP: BaseComponent + 'static,
sourcepub fn with_props(props: COMP::Properties) -> Self
pub fn with_props(props: COMP::Properties) -> Self
Creates a Renderer that renders into the document body with custom properties.
sourcepub fn with_root_and_props(root: Element, props: COMP::Properties) -> Self
pub fn with_root_and_props(root: Element, props: COMP::Properties) -> Self
Creates a Renderer that renders into a custom root with custom properties.
Trait Implementations§
Auto Trait Implementations§
impl<COMP> Freeze for Renderer<COMP>
impl<COMP> RefUnwindSafe for Renderer<COMP>
impl<COMP> !Send for Renderer<COMP>
impl<COMP> !Sync for Renderer<COMP>
impl<COMP> Unpin for Renderer<COMP>
impl<COMP> UnwindSafe for Renderer<COMP>
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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.