pub struct ScatterOverlayView {
pub mean_x: f64,
pub mean_y: f64,
pub x_min: f64,
pub x_max: f64,
pub slope: f64,
pub intercept: f64,
pub r_squared: f64,
pub valid: bool,
}Expand description
Pre-computed scatter overlay (mean lines + regression segment); when valid is false the numeric fields are zeros.
Fields§
§mean_x: f64§mean_y: f64§x_min: f64§x_max: f64§slope: f64§intercept: f64§r_squared: f64§valid: boolTrait Implementations§
Source§impl Clone for ScatterOverlayView
impl Clone for ScatterOverlayView
Source§fn clone(&self) -> ScatterOverlayView
fn clone(&self) -> ScatterOverlayView
Returns a duplicate 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 ScatterOverlayView
impl Debug for ScatterOverlayView
Source§impl From<ScatterOverlayView> for JsValuewhere
ScatterOverlayView: Serialize,
impl From<ScatterOverlayView> for JsValuewhere
ScatterOverlayView: Serialize,
Source§fn from(value: ScatterOverlayView) -> Self
fn from(value: ScatterOverlayView) -> Self
Converts to this type from the input type.
Source§impl IntoWasmAbi for &ScatterOverlayViewwhere
ScatterOverlayView: Serialize,
impl IntoWasmAbi for &ScatterOverlayViewwhere
ScatterOverlayView: Serialize,
Source§impl IntoWasmAbi for ScatterOverlayViewwhere
ScatterOverlayView: Serialize,
impl IntoWasmAbi for ScatterOverlayViewwhere
ScatterOverlayView: Serialize,
Source§impl OptionIntoWasmAbi for ScatterOverlayViewwhere
ScatterOverlayView: Serialize,
impl OptionIntoWasmAbi for ScatterOverlayViewwhere
ScatterOverlayView: Serialize,
Source§impl Serialize for ScatterOverlayView
impl Serialize for ScatterOverlayView
Source§impl Tsify for ScatterOverlayView
impl Tsify for ScatterOverlayView
const DECL: &'static str = "/**\n * Pre-computed scatter overlay (mean lines + regression segment); when `valid` is false the numeric fields are zeros.\n */\nexport interface ScatterOverlayView {\n mean_x: number;\n mean_y: number;\n x_min: number;\n x_max: number;\n slope: number;\n intercept: number;\n r_squared: number;\n valid: boolean;\n}"
const SERIALIZATION_CONFIG: SerializationConfig
type JsType = JsType
fn into_js(&self) -> Result<Self::JsType, Error>where
Self: Serialize,
Source§impl VectorIntoWasmAbi for ScatterOverlayViewwhere
ScatterOverlayView: Serialize,
impl VectorIntoWasmAbi for ScatterOverlayViewwhere
ScatterOverlayView: Serialize,
type Abi = <JsType as VectorIntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[Self]>) -> Self::Abi
Source§impl WasmDescribe for ScatterOverlayView
impl WasmDescribe for ScatterOverlayView
Auto Trait Implementations§
impl Freeze for ScatterOverlayView
impl RefUnwindSafe for ScatterOverlayView
impl Send for ScatterOverlayView
impl Sync for ScatterOverlayView
impl Unpin for ScatterOverlayView
impl UnsafeUnpin for ScatterOverlayView
impl UnwindSafe for ScatterOverlayView
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§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§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.