pub enum FormatArg<'a> {
}Expand description
An argument of a composite format operation.
Variants§
Null
A null reference: formats as empty text.
Str(&'a str)
A string: ignores the format string of the item.
Bool(bool)
A boolean: True or False.
Char(char)
A character.
I8(i8)
An 8-bit signed integer (the width matters for X and B).
I16(i16)
A 16-bit signed integer (the width matters for X and B).
I32(i32)
A 32-bit signed integer (the width matters for X and B).
I64(i64)
A 64-bit signed integer.
U64(u64)
An unsigned integer of any width.
F64(f64)
A double precision floating point number.
F32(f32)
A single precision floating point number.
Decimal(Decimal)
A decimal (128-bit) number.
DateTime(DateTime)
A date and time: formatted with date and time format strings.
DateTimeOffset(DateTimeOffset)
A date and time with an offset from UTC.
TimeSpan(TimeSpan)
A time interval: formatted with time span format strings.
Trait Implementations§
impl<'a> Copy for FormatArg<'a>
impl<'a> StructuralPartialEq for FormatArg<'a>
Auto Trait Implementations§
impl<'a> Freeze for FormatArg<'a>
impl<'a> RefUnwindSafe for FormatArg<'a>
impl<'a> Send for FormatArg<'a>
impl<'a> Sync for FormatArg<'a>
impl<'a> Unpin for FormatArg<'a>
impl<'a> UnsafeUnpin for FormatArg<'a>
impl<'a> UnwindSafe for FormatArg<'a>
Blanket Implementations§
Source§impl<T> AnyValue for Twhere
T: PartialEq + 'static,
impl<T> AnyValue for Twhere
T: PartialEq + 'static,
fn any_value_as_any(&self) -> &(dyn Any + 'static)
fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool
fn any_value_type_name(&self) -> &'static str
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> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more