pub struct DateFormatter {
pub fmt: String,
}Expand description
Formats cell values using a strftime-style format string.
Since oxiui-table has no chrono dependency, the format is applied to the
cell’s string representation via simple token substitution. For real date
formatting add chrono as an optional dependency and gate on a feature flag.
Currently only %Y-%m-%d token pass-through is supported: it returns the
cell’s display string unchanged (the caller is expected to store the date as a
pre-formatted Cell::Text).
Fields§
§fmt: StringA strftime-style format string (kept for future chrono integration).
Trait Implementations§
Source§impl CellFormatter for DateFormatter
impl CellFormatter for DateFormatter
Auto Trait Implementations§
impl Freeze for DateFormatter
impl RefUnwindSafe for DateFormatter
impl Send for DateFormatter
impl Sync for DateFormatter
impl Unpin for DateFormatter
impl UnsafeUnpin for DateFormatter
impl UnwindSafe for DateFormatter
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> 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