Struct plotly_fork::traces::table::Table

source ·
pub struct Table<T, N>
where T: Serialize + Clone + 'static, N: Serialize + Clone + 'static,
{ /* private fields */ }

Implementations§

source§

impl<T, N> Table<T, N>
where T: Serialize + Clone + 'static, N: Serialize + Clone + 'static,

source

pub fn name(self, value: impl AsRef<str>) -> Box<Self>

Sets the trace name. The trace name appear as the legend item and on hover.

source

pub fn modify_all_name(value: impl AsRef<str>) -> RestyleTable<T, N>

Apply the same restyling to all the traces

source

pub fn modify_name(values: Vec<impl AsRef<str>>) -> RestyleTable<T, N>

Apply the restyling individually to each trace. Caller is responsible to set the length of the vector to be equal to the number of traces

source

pub fn visible(self, value: Visible) -> Box<Self>

Determines whether or not this trace is visible. If Visible::LegendOnly, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible).

source

pub fn modify_all_visible(value: Visible) -> RestyleTable<T, N>

Apply the same restyling to all the traces

source

pub fn modify_visible(values: Vec<Visible>) -> RestyleTable<T, N>

Apply the restyling individually to each trace. Caller is responsible to set the length of the vector to be equal to the number of traces

source

pub fn column_order(self, value: Vec<usize>) -> Box<Self>

Specifies the rendered order of the data columns; for example, a value 2 at position 0, means that column index 0 in the data will be rendered as the, third column, as columns have an index base of zero.

source

pub fn modify_all_column_order(value: Vec<usize>) -> RestyleTable<T, N>

Apply the same restyling to all the traces

source

pub fn modify_column_order(values: Vec<Vec<usize>>) -> RestyleTable<T, N>

Apply the restyling individually to each trace. Caller is responsible to set the length of the vector to be equal to the number of traces

source

pub fn column_width(self, value: f64) -> Box<Self>

The width of columns expressed as a ratio. Columns fill the available width, in proportion of their specified column widths.

source

pub fn modify_all_column_width(value: f64) -> RestyleTable<T, N>

Apply the same restyling to all the traces

source

pub fn modify_column_width(values: Vec<f64>) -> RestyleTable<T, N>

Apply the restyling individually to each trace. Caller is responsible to set the length of the vector to be equal to the number of traces

source

pub fn header(self, value: Header<T>) -> Box<Self>

Header cell values. values[m][n] represents the value of the nth point in column m,, therefore the values[m] vector length for all columns must be the same (longer vectors, will be truncated). Each value must be a finite number or a string.

source

pub fn modify_all_header(value: Header<T>) -> RestyleTable<T, N>

Apply the same restyling to all the traces

source

pub fn modify_header(values: Vec<Header<T>>) -> RestyleTable<T, N>

Apply the restyling individually to each trace. Caller is responsible to set the length of the vector to be equal to the number of traces

source

pub fn cells(self, value: Cells<N>) -> Box<Self>

Cell values. values[m][n] represents the value of the nth point in column m,, therefore the values[m] vector length for all columns must be the same (longer vectors, will be truncated). Each value must be a finite number or a string.

source

pub fn modify_all_cells(value: Cells<N>) -> RestyleTable<T, N>

Apply the same restyling to all the traces

source

pub fn modify_cells(values: Vec<Cells<N>>) -> RestyleTable<T, N>

Apply the restyling individually to each trace. Caller is responsible to set the length of the vector to be equal to the number of traces

source§

impl<T, N> Table<T, N>
where T: Serialize + Clone + Default + 'static, N: Serialize + Clone + Default + 'static,

source

pub fn new(header: Vec<T>, cells: Vec<Vec<N>>) -> Box<Self>

Trait Implementations§

source§

impl<T, N> Clone for Table<T, N>
where T: Serialize + Clone + 'static + Clone, N: Serialize + Clone + 'static + Clone,

source§

fn clone(&self) -> Table<T, N>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<T, N> Debug for Table<T, N>
where T: Serialize + Clone + 'static + Debug, N: Serialize + Clone + 'static + Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<T, N> Default for Table<T, N>
where T: Serialize + Clone + 'static, N: Serialize + Clone + 'static,

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl<T, N> Serialize for Table<T, N>
where T: Serialize + Clone + 'static + Serialize, N: Serialize + Clone + 'static + Serialize,

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl<T, N> Trace for Table<T, N>
where T: Serialize + Clone + 'static, N: Serialize + Clone + 'static,

source§

fn to_json(&self) -> String

Auto Trait Implementations§

§

impl<T, N> !RefUnwindSafe for Table<T, N>

§

impl<T, N> Send for Table<T, N>
where N: Send, T: Send,

§

impl<T, N> Sync for Table<T, N>
where N: Sync, T: Sync,

§

impl<T, N> Unpin for Table<T, N>
where N: Unpin, T: Unpin,

§

impl<T, N> !UnwindSafe for Table<T, N>

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> DynClone for T
where T: Clone,

source§

fn __clone_box(&self, _: Private) -> *mut ()

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Serialize for T
where T: Serialize + ?Sized,

source§

fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<Ok, Error>

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V