Trait icu_datetime::time_zone::FormatTimeZone

source ·
pub(crate) trait FormatTimeZone {
    // Required method
    fn format<W: PartsWrite + ?Sized>(
        &self,
        sink: &mut W,
        time_zone: &impl TimeZoneInput,
        data_payloads: &TimeZoneDataPayloads,
    ) -> Result<Result, DateTimeError>;
}

Required Methods§

source

fn format<W: PartsWrite + ?Sized>( &self, sink: &mut W, time_zone: &impl TimeZoneInput, data_payloads: &TimeZoneDataPayloads, ) -> Result<Result, DateTimeError>

Tries to write the timezone to the sink. If a DateTimeError is returned, the sink has not been touched, so another format can be attempted.

Object Safety§

This trait is not object safe.

Implementors§