pub struct DataTableCell { /* private fields */ }Expand description
Content for a single cell inside a DataTableRow.
Implementations§
Source§impl DataTableCell
impl DataTableCell
Sourcepub fn text(value: impl Into<SharedString>) -> DataTableCell
pub fn text(value: impl Into<SharedString>) -> DataTableCell
Creates a plain-text table cell rendered with Material BodyMedium typography.
Sourcepub fn custom(element: impl IntoElement) -> DataTableCell
pub fn custom(element: impl IntoElement) -> DataTableCell
Creates a table cell containing an arbitrary GPUI element.
Sourcepub fn alignment(self, alignment: ColumnAlignment) -> DataTableCell
pub fn alignment(self, alignment: ColumnAlignment) -> DataTableCell
Overrides the column’s horizontal alignment for this cell.
Sourcepub fn muted(self, muted: bool) -> DataTableCell
pub fn muted(self, muted: bool) -> DataTableCell
Renders text cells with muted OnSurfaceVariant emphasis when enabled and unselected.
Trait Implementations§
Source§impl From<&'static str> for DataTableCell
impl From<&'static str> for DataTableCell
Source§fn from(value: &'static str) -> DataTableCell
fn from(value: &'static str) -> DataTableCell
Converts to this type from the input type.
Source§fn from(value: SharedString) -> DataTableCell
fn from(value: SharedString) -> DataTableCell
Converts to this type from the input type.
Source§impl From<String> for DataTableCell
impl From<String> for DataTableCell
Source§fn from(value: String) -> DataTableCell
fn from(value: String) -> DataTableCell
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for DataTableCell
impl !Send for DataTableCell
impl !Sync for DataTableCell
impl !UnwindSafe for DataTableCell
impl Forget for DataTableCell
impl Freeze for DataTableCell
impl Move for DataTableCell
impl Unpin for DataTableCell
impl UnsafeUnpin for DataTableCellwhere
&'static str: UnsafeUnpin,
*const ArcInner<str> is !null: UnsafeUnpin,
PhantomData<ArcInner<str>>: UnsafeUnpin,
*mut dyn ElementObject: UnsafeUnpin,
*const RcInner<Cell<bool>> is !null: UnsafeUnpin,
PhantomData<RcInner<Cell<bool>>>: UnsafeUnpin,
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
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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> ⓘ
Converts
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> ⓘ
Converts
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