pub struct ScatterRenderer { /* private fields */ }Expand description
Scatter plot renderer - implements both WindowRenderer and WebRenderer traits
This dual implementation allows the same renderer to work in:
- Native window contexts (Python bindings, desktop apps)
- Web contexts (WASM, browser-based apps)
Design principles:
- Trait composition: Implements multiple specialized interfaces
- Context-agnostic core: Same rendering logic for all platforms
- Resource encapsulation: Manages its own GPU resources
Trait Implementations§
Source§impl Renderer for ScatterRenderer
impl Renderer for ScatterRenderer
Source§fn render_to_pass<'rpass>(
&'rpass mut self,
render_pass: &mut RenderPass<'rpass>,
)
fn render_to_pass<'rpass>( &'rpass mut self, render_pass: &mut RenderPass<'rpass>, )
Render to the provided render pass
Source§impl WebRenderer for ScatterRenderer
impl WebRenderer for ScatterRenderer
Source§fn render_with_backend(
&mut self,
backend: &GPUBackend,
data: &ChartData,
options: &RenderOptions,
) -> Result<(), String>
fn render_with_backend( &mut self, backend: &GPUBackend, data: &ChartData, options: &RenderOptions, ) -> Result<(), String>
Render with full backend context
Source§fn update_data(
&mut self,
backend: &GPUBackend,
data: &ChartData,
) -> Result<(), String>
fn update_data( &mut self, backend: &GPUBackend, data: &ChartData, ) -> Result<(), String>
Update data using backend
Source§impl WindowRenderer for ScatterRenderer
impl WindowRenderer for ScatterRenderer
Auto Trait Implementations§
impl !Freeze for ScatterRenderer
impl !RefUnwindSafe for ScatterRenderer
impl Send for ScatterRenderer
impl Sync for ScatterRenderer
impl Unpin for ScatterRenderer
impl !UnwindSafe for ScatterRenderer
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