pub struct ZonedEnglishFormatter { /* private fields */ }Expand description
EnglishFormatter in a surface zone: instants shift by the host’s
ZoneOffset, a yyyy-mm-dd day never does (englishFormatter(zone)).
Implementations§
Source§impl ZonedEnglishFormatter
impl ZonedEnglishFormatter
pub fn new(offset: ZoneOffset) -> Self
Sourcepub fn fixed(minutes: i32) -> Self
pub fn fixed(minutes: i32) -> Self
A fixed offset (minutes east of UTC); fixed(0) = EnglishFormatter.
Trait Implementations§
Source§impl Clone for ZonedEnglishFormatter
impl Clone for ZonedEnglishFormatter
Source§impl Debug for ZonedEnglishFormatter
impl Debug for ZonedEnglishFormatter
Source§impl Formatter for ZonedEnglishFormatter
impl Formatter for ZonedEnglishFormatter
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
Auto Trait Implementations§
impl !RefUnwindSafe for ZonedEnglishFormatter
impl !UnwindSafe for ZonedEnglishFormatter
impl Freeze for ZonedEnglishFormatter
impl Send for ZonedEnglishFormatter
impl Sync for ZonedEnglishFormatter
impl Unpin for ZonedEnglishFormatter
impl UnsafeUnpin for ZonedEnglishFormatter
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