pub struct ColumnManager;
Expand description
Manages column-related operations for table display
Implementations§
Source§impl ColumnManager
impl ColumnManager
Sourcepub fn calculate_optimal_widths(data: &[Value]) -> Vec<u16>
pub fn calculate_optimal_widths(data: &[Value]) -> Vec<u16>
Calculate optimal column widths based on data content
Sourcepub fn calculate_widths_for_filtered(
headers: &[String],
data: &[Vec<String>],
) -> Vec<u16>
pub fn calculate_widths_for_filtered( headers: &[String], data: &[Vec<String>], ) -> Vec<u16>
Calculate column widths for filtered data (string arrays)
Sourcepub fn get_value_display_width(value: &Value) -> usize
pub fn get_value_display_width(value: &Value) -> usize
Get display width for a single value
Auto Trait Implementations§
impl Freeze for ColumnManager
impl RefUnwindSafe for ColumnManager
impl Send for ColumnManager
impl Sync for ColumnManager
impl Unpin for ColumnManager
impl UnwindSafe for ColumnManager
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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