Struct chart_js_rs::FnWithArgs
source · pub struct FnWithArgs { /* private fields */ }
Implementations§
source§impl FnWithArgs
impl FnWithArgs
pub fn is_empty(&self) -> bool
pub fn new() -> Self
pub fn arg(&mut self, name: &str) -> &mut Self
pub fn args(&mut self, args: &[String]) -> &mut Self
pub fn run_rust_fn<F>( &mut self, in_vars: &[String], out_var: String, _: F, ) -> Self
pub fn body(&mut self, body: &str) -> Self
pub fn return_value(&mut self, return_value: &str) -> Self
pub fn build(&self) -> Function
Trait Implementations§
source§impl Clone for FnWithArgs
impl Clone for FnWithArgs
source§fn clone(&self) -> FnWithArgs
fn clone(&self) -> FnWithArgs
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for FnWithArgs
impl Debug for FnWithArgs
source§impl Default for FnWithArgs
impl Default for FnWithArgs
source§fn default() -> FnWithArgs
fn default() -> FnWithArgs
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for FnWithArgs
impl<'de> Deserialize<'de> for FnWithArgs
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<FnWithArgs> for FnWithArgsOrAny
impl From<FnWithArgs> for FnWithArgsOrAny
source§fn from(value: FnWithArgs) -> Self
fn from(value: FnWithArgs) -> Self
Converts to this type from the input type.
source§impl Ord for FnWithArgs
impl Ord for FnWithArgs
source§fn cmp(&self, other: &FnWithArgs) -> Ordering
fn cmp(&self, other: &FnWithArgs) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for FnWithArgs
impl PartialEq for FnWithArgs
source§impl PartialOrd for FnWithArgs
impl PartialOrd for FnWithArgs
source§impl Serialize for FnWithArgs
impl Serialize for FnWithArgs
impl Eq for FnWithArgs
impl StructuralPartialEq for FnWithArgs
Auto Trait Implementations§
impl Freeze for FnWithArgs
impl RefUnwindSafe for FnWithArgs
impl Send for FnWithArgs
impl Sync for FnWithArgs
impl Unpin for FnWithArgs
impl UnwindSafe for FnWithArgs
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)