pub struct Cell {
pub text: String,
pub align: Align,
pub font_size: f64,
pub color: Color,
pub border: Border,
pub bg_color: Option<Color>,
pub padding: f64,
pub col_span: u32,
pub row_span: u32,
}Fields§
§text: String§align: Align§font_size: f64§color: Color§border: Border§bg_color: Option<Color>§padding: f64§col_span: u32§row_span: u32Implementations§
Source§impl Cell
impl Cell
pub fn new(text: &str) -> Self
pub fn align(self, align: Align) -> Self
pub fn font_size(self, size: f64) -> Self
pub fn color(self, color: Color) -> Self
pub fn border(self, border: Border) -> Self
pub fn bg_color(self, color: Color) -> Self
pub fn padding(self, padding: f64) -> Self
pub fn col_span(self, span: u32) -> Self
pub fn row_span(self, span: u32) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Cell
impl RefUnwindSafe for Cell
impl Send for Cell
impl Sync for Cell
impl Unpin for Cell
impl UnsafeUnpin for Cell
impl UnwindSafe for Cell
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