pub struct Cells<'a> { /* private fields */ }
Implementations§
Source§impl<'a> Cells<'a>
impl<'a> Cells<'a>
Sourcepub fn values(&mut self, values: &'a [f64]) -> &mut Self
pub fn values(&mut self, values: &'a [f64]) -> &mut Self
Cell values. values[m][n]
represents the value of the n
th 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.
default: []
Sourcepub fn format(&mut self, format: &'a [f64]) -> &mut Self
pub fn format(&mut self, format: &'a [f64]) -> &mut Self
Sets the cell value formatting rule using d3 formatting mini-language which is similar to those of Python. See https://github.com/d3/d3-3.x-api-reference/blob/master/Formatting.md#d3_format
default: []
Sourcepub fn align(&mut self, align: Align) -> &mut Self
pub fn align(&mut self, align: Align) -> &mut Self
Sets the horizontal alignment of the text
within the box. Has an effect only if text
spans two or more lines (i.e. text
contains one or more
HTML tags) or if an explicit width is set to override the text width.
default: center
pub fn line(&mut self) -> &mut Line<'a>
pub fn fill(&mut self) -> &mut Fill<'a>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Cells<'a>
impl<'a> RefUnwindSafe for Cells<'a>
impl<'a> Send for Cells<'a>
impl<'a> Sync for Cells<'a>
impl<'a> Unpin for Cells<'a>
impl<'a> UnwindSafe for Cells<'a>
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