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.