pub struct RenderedCell {
pub col: usize,
pub text: String,
pub x: f32,
pub y: f32,
pub width: f32,
}Expand description
A single positioned header cell produced by Table::render_header.
Each RenderedCell describes the column label, its horizontal position, and
its vertical position within the rendered viewport. Renderers use these
values to draw the header row independently from the scrolling data area.
Fields§
§col: usizeThe logical column index this cell represents.
text: StringThe display text of the column header (from crate::ColumnDef::name).
x: f32The horizontal (X) position of the cell’s left edge in logical pixels.
y: f32The vertical (Y) position of the cell’s top edge in logical pixels.
width: f32The width of the cell in logical pixels (from Table::effective_width).
Trait Implementations§
Source§impl Clone for RenderedCell
impl Clone for RenderedCell
Source§fn clone(&self) -> RenderedCell
fn clone(&self) -> RenderedCell
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RenderedCell
impl Debug for RenderedCell
Source§impl PartialEq for RenderedCell
impl PartialEq for RenderedCell
Source§fn eq(&self, other: &RenderedCell) -> bool
fn eq(&self, other: &RenderedCell) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RenderedCell
Auto Trait Implementations§
impl Freeze for RenderedCell
impl RefUnwindSafe for RenderedCell
impl Send for RenderedCell
impl Sync for RenderedCell
impl Unpin for RenderedCell
impl UnsafeUnpin for RenderedCell
impl UnwindSafe for RenderedCell
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more