pub struct Renderer<COMP, L = PhantomLink>where
COMP: BaseComponent,
L: Link,{ /* private fields */ }
Expand description
The Stellation Frontend Renderer.
This type wraps the Yew Renderer and provides additional features.
§Note
Stellation provides BrowserRouter
and
BounceRoot
to all applications.
Bounce Helmet is also bridged automatically.
You do not need to add them manually.
Implementations§
Source§impl<COMP> Renderer<COMP>where
COMP: BaseComponent,
impl<COMP> Renderer<COMP>where
COMP: BaseComponent,
Sourcepub fn new() -> Renderer<COMP>where
COMP::Properties: Default,
pub fn new() -> Renderer<COMP>where
COMP::Properties: Default,
Creates a Renderer with default props.
Source§impl<COMP, L> Renderer<COMP, L>where
COMP: BaseComponent,
L: 'static + Link,
impl<COMP, L> Renderer<COMP, L>where
COMP: BaseComponent,
L: 'static + Link,
Sourcepub fn with_props(props: COMP::Properties) -> Renderer<COMP, L>
pub fn with_props(props: COMP::Properties) -> Renderer<COMP, L>
Creates a Renderer with specified props.
Sourcepub fn bridge_selector<S, LINK>(self) -> Renderer<COMP, LINK>
pub fn bridge_selector<S, LINK>(self) -> Renderer<COMP, LINK>
Connects a bridge to the application.
Trait Implementations§
Auto Trait Implementations§
impl<COMP, L> Freeze for Renderer<COMP, L>
impl<COMP, L = PhantomLink> !RefUnwindSafe for Renderer<COMP, L>
impl<COMP, L = PhantomLink> !Send for Renderer<COMP, L>
impl<COMP, L = PhantomLink> !Sync for Renderer<COMP, L>
impl<COMP, L> Unpin for Renderer<COMP, L>
impl<COMP, L = PhantomLink> !UnwindSafe for Renderer<COMP, L>
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> 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.