pub struct ColumnWidth {
pub column: u32,
pub width: f64,
pub custom_width: bool,
pub hidden: bool,
pub best_fit: bool,
}Expand description
Column width information
Fields§
§column: u32Column index (0-based)
width: f64Width in Excel units (characters)
custom_width: boolWhether the width is custom (manually set)
Whether the column is hidden
best_fit: boolBest fit width
Implementations§
Source§impl ColumnWidth
impl ColumnWidth
Sourcepub fn with_custom_width(self, custom: bool) -> Self
pub fn with_custom_width(self, custom: bool) -> Self
Set custom width flag
Set hidden flag
Sourcepub fn with_best_fit(self, best_fit: bool) -> Self
pub fn with_best_fit(self, best_fit: bool) -> Self
Set best fit flag
Sourcepub fn is_visible(&self) -> bool
pub fn is_visible(&self) -> bool
Check if column is visible
Trait Implementations§
Source§impl Clone for ColumnWidth
impl Clone for ColumnWidth
Source§fn clone(&self) -> ColumnWidth
fn clone(&self) -> ColumnWidth
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 moreSource§impl Debug for ColumnWidth
impl Debug for ColumnWidth
Source§impl PartialEq for ColumnWidth
impl PartialEq for ColumnWidth
impl StructuralPartialEq for ColumnWidth
Auto Trait Implementations§
impl Freeze for ColumnWidth
impl RefUnwindSafe for ColumnWidth
impl Send for ColumnWidth
impl Sync for ColumnWidth
impl Unpin for ColumnWidth
impl UnsafeUnpin for ColumnWidth
impl UnwindSafe for ColumnWidth
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