pub struct ExportColumn<'a, C> { /* private fields */ }Expand description
A column of an ExportTable: the application column, its header text,
and how the grid shows it, for a spreadsheet format to match.
Implementations§
Source§impl<'a, C: GridColumns> ExportColumn<'a, C>
impl<'a, C: GridColumns> ExportColumn<'a, C>
Sourcepub const fn new(column: C, title: &'a str) -> Self
pub const fn new(column: C, title: &'a str) -> Self
Creates a column with its header text: no width, Auto alignment, in
the scrolling zone, under no band.
Sourcepub fn with_width(self, width: f32) -> Self
pub fn with_width(self, width: f32) -> Self
Sets the column’s width on screen, in logical pixels. A spreadsheet
format derives its own width from it: in Excel, about
(width - 5) / 7 characters of Calibri 11.
Sourcepub fn with_align(self, align: ColumnAlign) -> Self
pub fn with_align(self, align: ColumnAlign) -> Self
Sets the column’s alignment.
Sourcepub fn with_zone(self, zone: ColumnZone) -> Self
pub fn with_zone(self, zone: ColumnZone) -> Self
Sets the zone the column is shown in.
Sourcepub fn with_bands(self, bands: &'a [&'a str]) -> Self
pub fn with_bands(self, bands: &'a [&'a str]) -> Self
Sets the titles of the header bands over the column, outermost first
(ColumnBand): rows of merged header cells in a spreadsheet.
Sourcepub fn width(&self) -> Option<f32>
pub fn width(&self) -> Option<f32>
The column’s width on screen, in logical pixels; None if not given.
Sourcepub fn align(&self) -> ColumnAlign
pub fn align(&self) -> ColumnAlign
The column’s alignment; Auto puts numbers right and the rest left.
Sourcepub fn zone(&self) -> ColumnZone
pub fn zone(&self) -> ColumnZone
The zone the column is shown in: the leading FrozenLeft columns are
what a spreadsheet freezes (ExportTable::frozen_columns).
Trait Implementations§
Source§impl<'a, C: Clone> Clone for ExportColumn<'a, C>
impl<'a, C: Clone> Clone for ExportColumn<'a, C>
Source§fn clone(&self) -> ExportColumn<'a, C>
fn clone(&self) -> ExportColumn<'a, C>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<'a, C: Debug> Debug for ExportColumn<'a, C>
impl<'a, C: Debug> Debug for ExportColumn<'a, C>
Source§impl<'a, C: PartialEq> PartialEq for ExportColumn<'a, C>
impl<'a, C: PartialEq> PartialEq for ExportColumn<'a, C>
impl<'a, C: Copy> Copy for ExportColumn<'a, C>
impl<'a, C> StructuralPartialEq for ExportColumn<'a, C>
Auto Trait Implementations§
impl<'a, C> Freeze for ExportColumn<'a, C>where
C: Freeze,
impl<'a, C> RefUnwindSafe for ExportColumn<'a, C>where
C: RefUnwindSafe,
impl<'a, C> Send for ExportColumn<'a, C>where
C: Send,
impl<'a, C> Sync for ExportColumn<'a, C>where
C: Sync,
impl<'a, C> Unpin for ExportColumn<'a, C>where
C: Unpin,
impl<'a, C> UnsafeUnpin for ExportColumn<'a, C>where
C: UnsafeUnpin,
impl<'a, C> UnwindSafe for ExportColumn<'a, C>where
C: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
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>
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