pub struct EnglishFormatter;Expand description
The formatter a surface uses without a host one: Intl en-US decided by
data (englishFallback), instants in UTC. Equal to Intl en-US on every
case of fixtures/format.json.
Trait Implementations§
Source§impl Clone for EnglishFormatter
impl Clone for EnglishFormatter
impl Copy for EnglishFormatter
Source§impl Debug for EnglishFormatter
impl Debug for EnglishFormatter
Source§impl Default for EnglishFormatter
impl Default for EnglishFormatter
Source§impl Formatter for EnglishFormatter
impl Formatter for EnglishFormatter
fn number(&self, value: f64, options: NumberOptions) -> String
Source§fn currency(&self, value: f64, code: &str, options: NumberOptions) -> String
fn currency(&self, value: f64, code: &str, options: NumberOptions) -> String
code = an upper-case ISO 4217 code.fn date(&self, value: DateValue, options: &DateOptions) -> String
Source§fn relative_time(&self, value: i64, unit: RelativeUnit) -> String
fn relative_time(&self, value: i64, unit: RelativeUnit) -> String
value units relative to now (negative = past), truncated by the core.fn plural(&self, value: f64) -> PluralCategory
Source§fn bytes(&self, value: f64, unit: ByteUnit) -> String
fn bytes(&self, value: f64, unit: ByteUnit) -> String
A byte size (
value already in unit, ≤ 1 fraction digit), like
Intl.NumberFormat(locale, {style: "unit", unitDisplay: "short"}).
The default: the number through Self::number + the English
short unit (byte, kB, MB, GB).Source§fn offset_minutes(&self, _utc_ms: f64) -> i32
fn offset_minutes(&self, _utc_ms: f64) -> i32
VAPP-191: the surface (team) zone’s UTC offset in minutes at an
instant, for the expression date maths (
crate::cel). Default UTC.Auto Trait Implementations§
impl Freeze for EnglishFormatter
impl RefUnwindSafe for EnglishFormatter
impl Send for EnglishFormatter
impl Sync for EnglishFormatter
impl Unpin for EnglishFormatter
impl UnsafeUnpin for EnglishFormatter
impl UnwindSafe for EnglishFormatter
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