pub struct IanaParserExtended(pub IanaParserExtended<IanaParser>);
Expand description
A mapper between IANA time zone identifiers and BCP-47 time zone identifiers.
This mapper supports two-way mapping, but it is optimized for the case of IANA to BCP-47. It also supports normalizing and canonicalizing the IANA strings.
Tuple Fields§
§0: IanaParserExtended<IanaParser>
Implementations§
Source§impl IanaParserExtended
impl IanaParserExtended
Sourcepub fn create() -> Box<IanaParserExtended>
pub fn create() -> Box<IanaParserExtended>
Create a new IanaParserExtended
using compiled data
Sourcepub fn create_with_provider(
provider: &DataProvider,
) -> Result<Box<IanaParserExtended>, DataError>
pub fn create_with_provider( provider: &DataProvider, ) -> Result<Box<IanaParserExtended>, DataError>
Create a new IanaParserExtended
using a particular data source
pub fn parse<'a>( &'a self, value: &DiplomatStr, ) -> TimeZoneAndCanonicalAndNormalized<'a>
pub fn iter<'a>(&'a self) -> Box<TimeZoneAndCanonicalIterator<'a>>
pub fn iter_all<'a>( &'a self, ) -> Box<TimeZoneAndCanonicalAndNormalizedIterator<'a>>
Auto Trait Implementations§
impl Freeze for IanaParserExtended
impl RefUnwindSafe for IanaParserExtended
impl Send for IanaParserExtended
impl Sync for IanaParserExtended
impl Unpin for IanaParserExtended
impl UnwindSafe for IanaParserExtended
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