ICU4X
International Components for Unicode
Loading...
Searching...
No Matches
icu4x::DateTimeWriteError Class Reference

#include <DateTimeWriteError.d.hpp>

Public Types

enum  Value { Unknown = 0 , MissingTimeZoneVariant = 1 }
 

Public Member Functions

 DateTimeWriteError ()=default
 
constexpr DateTimeWriteError (Value v)
 
constexpr operator Value () const
 
 operator bool () const =delete
 

Detailed Description

An error when formatting a datetime.

Currently the only reachable error here is a missing time zone variant. If you encounter that error, you need to call with_variant or infer_variant on your TimeZoneInfo.

Additional information: 1

Member Enumeration Documentation

◆ Value

Enumerator
Unknown 
MissingTimeZoneVariant 

Constructor & Destructor Documentation

◆ DateTimeWriteError() [1/2]

icu4x::DateTimeWriteError::DateTimeWriteError ( )
default

◆ DateTimeWriteError() [2/2]

icu4x::DateTimeWriteError::DateTimeWriteError ( Value v)
inlineconstexpr

Member Function Documentation

◆ operator bool()

icu4x::DateTimeWriteError::operator bool ( ) const
explicitdelete

◆ operator Value()

icu4x::DateTimeWriteError::operator Value ( ) const
inlineconstexpr

The documentation for this class was generated from the following files: