#[non_exhaustive]pub struct FormatContext {
pub bidi: BidiStrategy,
pub host: &'static dyn Host,
pub time_zone: TimeZone,
}Expand description
What formatting needs beyond the catalog and the registry; build it
with FormatContext::new.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.bidi: BidiStrategyThe bidi strategy.
host: &'static dyn HostThe platform services.
time_zone: TimeZoneThe default time zone: what timeZone defaults to, and the zone of a
floating date/time (plans/03-runtime.md §6).
Implementations§
Source§impl FormatContext
impl FormatContext
Sourcepub const fn new(host: &'static dyn Host) -> FormatContext
pub const fn new(host: &'static dyn Host) -> FormatContext
The Default Bidi Strategy over host, in UTC.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for FormatContext
impl !UnwindSafe for FormatContext
impl Freeze for FormatContext
impl Send for FormatContext
impl Sync for FormatContext
impl Unpin for FormatContext
impl UnsafeUnpin for FormatContext
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