pub struct TableRowPresentation<'a, T> { /* private fields */ }Expand description
Typed row formatting and optional complete cell-style replacements.
Implementations§
Source§impl<'a, T: 'a> TableRowPresentation<'a, T>
impl<'a, T: 'a> TableRowPresentation<'a, T>
Sourcepub fn cell_style<S>(self, cell_style: S) -> Self
pub fn cell_style<S>(self, cell_style: S) -> Self
Replaces the optional typed cell-style policy.
The callback receives the complete column or table fallback style.
None keeps that style; Some is a complete replacement.
Trait Implementations§
Source§impl<'a, T: Clone> Clone for TableRowPresentation<'a, T>
impl<'a, T: Clone> Clone for TableRowPresentation<'a, T>
Auto Trait Implementations§
impl<'a, T> !RefUnwindSafe for TableRowPresentation<'a, T>
impl<'a, T> !Send for TableRowPresentation<'a, T>
impl<'a, T> !Sync for TableRowPresentation<'a, T>
impl<'a, T> !UnwindSafe for TableRowPresentation<'a, T>
impl<'a, T> Freeze for TableRowPresentation<'a, T>where
Arc<dyn Fn(&T, TableRowPosition, &mut TableRowCells) + 'a>: Freeze,
Option<Arc<dyn Fn(&T, TableCell<'_>, &BlockStyle) -> Option<BlockStyle> + 'a>>: Freeze,
impl<'a, T> Unpin for TableRowPresentation<'a, T>where
Arc<dyn Fn(&T, TableRowPosition, &mut TableRowCells) + 'a>: Unpin,
Option<Arc<dyn Fn(&T, TableCell<'_>, &BlockStyle) -> Option<BlockStyle> + 'a>>: Unpin,
impl<'a, T> UnsafeUnpin for TableRowPresentation<'a, T>where
Arc<dyn Fn(&T, TableRowPosition, &mut TableRowCells) + 'a>: UnsafeUnpin,
Option<Arc<dyn Fn(&T, TableCell<'_>, &BlockStyle) -> Option<BlockStyle> + 'a>>: UnsafeUnpin,
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