pub struct WasmRenderer { /* private fields */ }
Available on crate feature
wasm
only.Implementations§
Source§impl WasmRenderer
impl WasmRenderer
pub fn new(width: u32, height: u32) -> Self
pub fn theme(self, theme: Theme) -> Self
pub fn render(&self, id: &str, chart: &Chart) -> Result<Echarts, EchartsError>
Sourcepub fn resize_chart(echarts: &Echarts, chart_size: ChartResize)
pub fn resize_chart(echarts: &Echarts, chart_size: ChartResize)
Resizes a chart with options specified in ChartResize
pub fn update(echarts: &Echarts, chart: &Chart)
Auto Trait Implementations§
impl Freeze for WasmRenderer
impl RefUnwindSafe for WasmRenderer
impl Send for WasmRenderer
impl Sync for WasmRenderer
impl Unpin for WasmRenderer
impl UnwindSafe for WasmRenderer
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more