pub struct DataTableCell {
pub content: CellContent,
pub h_align: Option<HAlign>,
pub v_align: Option<VAlign>,
pub placeholder: bool,
pub show_edit_icon: bool,
}Fields§
§content: CellContent§h_align: Option<HAlign>§v_align: Option<VAlign>§placeholder: bool§show_edit_icon: boolImplementations§
Source§impl DataTableCell
impl DataTableCell
pub fn text(text: impl Into<WidgetText>) -> Self
pub fn widget<F>(f: F) -> Self
pub fn h_align(self, align: HAlign) -> Self
pub fn v_align(self, align: VAlign) -> Self
pub fn placeholder(self, is_placeholder: bool) -> Self
pub fn show_edit_icon(self, show: bool) -> Self
Auto Trait Implementations§
impl Freeze for DataTableCell
impl !RefUnwindSafe for DataTableCell
impl Send for DataTableCell
impl Sync for DataTableCell
impl Unpin for DataTableCell
impl UnsafeUnpin for DataTableCell
impl !UnwindSafe for DataTableCell
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> 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.