pub struct Column {
pub id: Id,
pub width: ColumnWidth,
pub minimum: f32,
pub horizontal: Align,
pub vertical: Align,
/* private fields */
}Expand description
Shared column policy for Grid and Table. Widths include cell padding.
Fields§
§id: Id§width: ColumnWidth§minimum: f32§horizontal: Align§vertical: AlignImplementations§
Source§impl Column
impl Column
pub fn new(source: impl Hash, width: ColumnWidth) -> Self
pub fn fixed(source: impl Hash, width: f32) -> Self
pub fn content(source: impl Hash) -> Self
pub fn remainder(source: impl Hash) -> Self
pub fn min_width(self, width: f32) -> Self
pub fn align(self, horizontal: Align, vertical: Align) -> Self
Sourcepub fn numeric(self, numeric: bool) -> Self
pub fn numeric(self, numeric: bool) -> Self
A column of numbers: right-aligned cells whose digits are tabular, so decimal places line up. Text in cells inherits it through the cell’s text style.
pub fn title(self, title: impl Into<String>) -> Self
pub fn sortable(self, sortable: bool) -> Self
pub fn resizable(self, resizable: bool) -> Self
Trait Implementations§
impl StructuralPartialEq for Column
Auto Trait Implementations§
impl Freeze for Column
impl RefUnwindSafe for Column
impl Send for Column
impl Sync for Column
impl Unpin for Column
impl UnsafeUnpin for Column
impl UnwindSafe for Column
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
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.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.