pub struct Cells<N> { /* private fields */ }
Implementations§
Source§impl<N> Cells<N>
impl<N> Cells<N>
Sourcepub fn values(self, value: Vec<Vec<N>>) -> Self
pub fn values(self, value: Vec<Vec<N>>) -> 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
pub fn height(self, value: f64) -> Self
pub fn align(self, value: impl AsRef<str>) -> Self
pub fn line(self, value: Line) -> Self
Sourcepub fn fill(self, value: Fill) -> Self
pub fn fill(self, value: Fill) -> Self
Sets the cell fill color. It accepts either a specific color, or an array of colors or a 2D array of colors
pub fn font(self, value: Font) -> Self
Trait Implementations§
Auto Trait Implementations§
impl<N> Freeze for Cells<N>
impl<N> !RefUnwindSafe for Cells<N>
impl<N> Send for Cells<N>where
N: Send,
impl<N> Sync for Cells<N>where
N: Sync,
impl<N> Unpin for Cells<N>where
N: Unpin,
impl<N> !UnwindSafe for Cells<N>
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