FormatArgument
enum · ferroui-protranslate-core · v0.5.0
enum FormatArgument
Members
StringInteger8Integer16Integer32IntegerInteger128UnsignedUnsigned128FloatNumberBoolNullDecimalCustomDateTimeNaiveDateTimedecimalformat
String
String(String)
Integer8
Integer8(i8)
Integer16
Integer16(i16)
Integer32
Integer32(i32)
Integer
Integer(i64)
Integer128
Integer128(i128)
Unsigned
Unsigned(u64)
Unsigned128
Unsigned128(u128)
Float
Float(f32)
Number
Number(f64)
Bool
Bool(bool)
Null
Null
Decimal
Decimal(fixed_decimal::Decimal)
Exact base-ten value, useful for money and numbers above 2^53.
Custom
Custom(std::rc::Rc<dyn LocalizedFormat>)
DateTime
DateTime(crate::LocalizedDateTime)
NaiveDateTime
NaiveDateTime(crate::LocalizedNaiveDateTime)
decimal
fn decimal(value: &str) -> Result<Self, TranslationError>
format
fn format(self: &Self, specifier: &str, culture: &Culture) -> Result<String, TranslationError>
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedErasedDestructorIntoEitherFrom<LocalizedDateTime>From<OffsetDateTime>From<LocalizedNaiveDateTime>From<PlainDateTime>CloneDebugPartialEqFrom<String>From<&str>From<f64>From<f32>From<bool>From<i8>From<i16>From<i32>From<i64>From<i128>From<u128>From<u8>From<u16>From<u32>From<u64>From<isize>From<usize>From<Signed<UnsignedDecimal>>
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.