pub struct WindowsParser(pub WindowsParser);
Expand description
A mapper between Windows time zone identifiers and BCP-47 time zone identifiers.
This mapper supports two-way mapping, but it is optimized for the case of Windows to BCP-47. It also supports normalizing and canonicalizing the Windows strings.
Tuple Fields§
§0: WindowsParser
Implementations§
Source§impl WindowsParser
impl WindowsParser
Sourcepub fn create() -> Box<WindowsParser>
pub fn create() -> Box<WindowsParser>
Create a new WindowsParser
using compiled data
Sourcepub fn create_with_provider(
provider: &DataProvider,
) -> Result<Box<WindowsParser>, DataError>
pub fn create_with_provider( provider: &DataProvider, ) -> Result<Box<WindowsParser>, DataError>
Create a new WindowsParser
using a particular data source
pub fn parse( &self, value: &DiplomatStr, region: &DiplomatStr, ) -> Option<Box<TimeZone>>
Auto Trait Implementations§
impl Freeze for WindowsParser
impl RefUnwindSafe for WindowsParser
impl Send for WindowsParser
impl Sync for WindowsParser
impl Unpin for WindowsParser
impl UnwindSafe for WindowsParser
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more