pub struct ColumnDef {
pub name: String,
pub width: f32,
pub min_width: f32,
pub max_width: f32,
pub resizable: bool,
pub formatter: Option<Box<dyn CellFormatter>>,
pub align: Option<CellAlign>,
}Expand description
Column definition: name, preferred display width, and optional per-column configuration.
Fields§
§name: StringDisplay name shown in the column header.
width: f32Preferred column width in logical pixels.
min_width: f32Minimum allowed column width when resizing (logical pixels).
max_width: f32Maximum allowed column width when resizing (logical pixels).
resizable: boolWhether the user may resize this column by dragging the header edge.
formatter: Option<Box<dyn CellFormatter>>Optional custom cell formatter. None falls back to DefaultFormatter.
align: Option<CellAlign>Optional alignment override. None falls back to CellAlign::default_for.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ColumnDef
impl !UnwindSafe for ColumnDef
impl Freeze for ColumnDef
impl Send for ColumnDef
impl Sync for ColumnDef
impl Unpin for ColumnDef
impl UnsafeUnpin for ColumnDef
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