Struct chart_js_rs::Chart
source · pub struct Chart { /* private fields */ }
Implementations§
source§impl Chart
impl Chart
pub fn mutate(&mut self) -> Self
pub fn plugins(&mut self, plugins: impl Into<String>) -> Self
pub fn defaults(&mut self, defaults: impl Into<String>) -> Self
pub fn render(self)
pub fn update(self, animate: bool) -> bool
sourcepub fn rationalise_js(&self)
pub fn rationalise_js(&self)
Converts serialized FnWithArgs to JS Function’s For new chart options, this will need to be updated
Trait Implementations§
source§impl FromWasmAbi for Chart
impl FromWasmAbi for Chart
source§impl IntoWasmAbi for Chart
impl IntoWasmAbi for Chart
source§impl LongRefFromWasmAbi for Chart
impl LongRefFromWasmAbi for Chart
source§impl OptionFromWasmAbi for Chart
impl OptionFromWasmAbi for Chart
source§impl OptionIntoWasmAbi for Chart
impl OptionIntoWasmAbi for Chart
source§impl RefFromWasmAbi for Chart
impl RefFromWasmAbi for Chart
source§impl RefMutFromWasmAbi for Chart
impl RefMutFromWasmAbi for Chart
source§impl TryFromJsValue for Chart
impl TryFromJsValue for Chart
source§impl VectorFromWasmAbi for Chart
impl VectorFromWasmAbi for Chart
source§impl VectorIntoWasmAbi for Chart
impl VectorIntoWasmAbi for Chart
Auto Trait Implementations§
impl Freeze for Chart
impl RefUnwindSafe for Chart
impl !Send for Chart
impl !Sync for Chart
impl Unpin for Chart
impl UnwindSafe for Chart
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> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abi
source§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
.