pub struct AutoWidthStrategy {
pub min_width: u32,
pub max_width: u32,
}Expand description
自动列宽计算策略。
根据每列中最长的单元格内容计算列宽。
Fields§
§min_width: u32Minimum column width in twips (default: ~1 character).
max_width: u32Maximum column width in twips (default: ~40 characters).
Implementations§
Trait Implementations§
Source§impl Clone for AutoWidthStrategy
impl Clone for AutoWidthStrategy
Source§fn clone(&self) -> AutoWidthStrategy
fn clone(&self) -> AutoWidthStrategy
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 AutoWidthStrategy
impl Debug for AutoWidthStrategy
Source§impl Default for AutoWidthStrategy
impl Default for AutoWidthStrategy
Source§fn default() -> AutoWidthStrategy
fn default() -> AutoWidthStrategy
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AutoWidthStrategy
impl RefUnwindSafe for AutoWidthStrategy
impl Send for AutoWidthStrategy
impl Sync for AutoWidthStrategy
impl Unpin for AutoWidthStrategy
impl UnsafeUnpin for AutoWidthStrategy
impl UnwindSafe for AutoWidthStrategy
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