pub struct OrdinalDisplay { /* private fields */ }Expand description
Display wrapper for ordinal formatting (e.g. "21st").
Instances of this type are created via crate::ordinal().
Trait Implementations§
Source§impl Clone for OrdinalDisplay
impl Clone for OrdinalDisplay
Source§fn clone(&self) -> OrdinalDisplay
fn clone(&self) -> OrdinalDisplay
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OrdinalDisplay
impl Debug for OrdinalDisplay
Source§impl Display for OrdinalDisplay
impl Display for OrdinalDisplay
impl Copy for OrdinalDisplay
Auto Trait Implementations§
impl Freeze for OrdinalDisplay
impl RefUnwindSafe for OrdinalDisplay
impl Send for OrdinalDisplay
impl Sync for OrdinalDisplay
impl Unpin for OrdinalDisplay
impl UnsafeUnpin for OrdinalDisplay
impl UnwindSafe for OrdinalDisplay
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Humanize for T
impl<T> Humanize for T
Source§fn human_bytes(self) -> BytesDisplaywhere
Self: BytesLike,
fn human_bytes(self) -> BytesDisplaywhere
Self: BytesLike,
Formats this value as a human-readable byte size using default options.
Source§fn human_bytes_with(self, options: BytesOptions) -> BytesDisplaywhere
Self: BytesLike,
fn human_bytes_with(self, options: BytesOptions) -> BytesDisplaywhere
Self: BytesLike,
Formats this value as a human-readable byte size using custom options.
Source§fn human_ago(self) -> AgoDisplaywhere
Self: DurationLike,
fn human_ago(self) -> AgoDisplaywhere
Self: DurationLike,
Formats this duration as relative time using default options.
Source§fn human_ago_with(self, options: DurationOptions) -> AgoDisplaywhere
Self: DurationLike,
fn human_ago_with(self, options: DurationOptions) -> AgoDisplaywhere
Self: DurationLike,
Formats this duration as relative time using custom duration options.
Source§fn human_duration(self) -> DurationDisplaywhere
Self: DurationLike,
fn human_duration(self) -> DurationDisplaywhere
Self: DurationLike,
Formats this duration using default options.
Source§fn human_duration_with(self, options: DurationOptions) -> DurationDisplaywhere
Self: DurationLike,
fn human_duration_with(self, options: DurationOptions) -> DurationDisplaywhere
Self: DurationLike,
Formats this duration using custom duration options.
Source§fn human_number(self) -> NumberDisplaywhere
Self: NumberLike,
fn human_number(self) -> NumberDisplaywhere
Self: NumberLike,
Formats this numeric value as a compact human-readable number using default options.
Source§fn human_number_with(self, options: NumberOptions) -> NumberDisplaywhere
Self: NumberLike,
fn human_number_with(self, options: NumberOptions) -> NumberDisplaywhere
Self: NumberLike,
Formats this numeric value as a compact human-readable number using custom options.
Source§fn human_ordinal(self) -> OrdinalDisplaywhere
Self: OrdinalLike,
fn human_ordinal(self) -> OrdinalDisplaywhere
Self: OrdinalLike,
Formats this value as an ordinal number.
Source§fn human_percent(self) -> PercentDisplaywhere
Self: PercentLike,
fn human_percent(self) -> PercentDisplaywhere
Self: PercentLike,
Formats this value as a human-readable percentage using default options. Read more
Source§fn human_percent_with(self, options: PercentOptions) -> PercentDisplaywhere
Self: PercentLike,
fn human_percent_with(self, options: PercentOptions) -> PercentDisplaywhere
Self: PercentLike,
Formats this value as a human-readable percentage using custom options.