pub struct ColumnInfo {
pub width_spec: ColumnWidth,
pub computed_width: Length,
pub min_width: Length,
pub max_width: Length,
}Expand description
Information about a table column
Used in auto layout algorithm to track column width constraints.
Fields§
§width_spec: ColumnWidthColumn width specification
computed_width: LengthComputed width (after layout)
min_width: LengthMinimum content width Smallest width that prevents content overflow
max_width: LengthMaximum content width Preferred width without any line breaking
Implementations§
Source§impl ColumnInfo
impl ColumnInfo
Sourcepub fn new(width_spec: ColumnWidth) -> Self
pub fn new(width_spec: ColumnWidth) -> Self
Create a new ColumnInfo with the given width specification
Sourcepub fn with_widths(
width_spec: ColumnWidth,
min_width: Length,
max_width: Length,
) -> Self
pub fn with_widths( width_spec: ColumnWidth, min_width: Length, max_width: Length, ) -> Self
Create a ColumnInfo with explicit min/max widths
Trait Implementations§
Source§impl Clone for ColumnInfo
impl Clone for ColumnInfo
Source§fn clone(&self) -> ColumnInfo
fn clone(&self) -> ColumnInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ColumnInfo
impl RefUnwindSafe for ColumnInfo
impl Send for ColumnInfo
impl Sync for ColumnInfo
impl Unpin for ColumnInfo
impl UnsafeUnpin for ColumnInfo
impl UnwindSafe for ColumnInfo
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