1 | use crate::tz::{TimeZone, TimeZoneNameIter}; |
2 | |
3 | #[derive (Clone)] |
4 | pub(crate) struct Database; |
5 | |
6 | impl Database { |
7 | pub(crate) fn new() -> Database { |
8 | Database |
9 | } |
10 | |
11 | pub(crate) fn reset(&self) {} |
12 | |
13 | pub(crate) fn get(&self, _query: &str) -> Option<TimeZone> { |
14 | None |
15 | } |
16 | |
17 | pub(crate) fn available<'d>(&'d self) -> TimeZoneNameIter<'d> { |
18 | TimeZoneNameIter::empty() |
19 | } |
20 | |
21 | pub(crate) fn is_definitively_empty(&self) -> bool { |
22 | true |
23 | } |
24 | } |
25 | |
26 | impl core::fmt::Debug for Database { |
27 | fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result { |
28 | write!(f, "Bundled(unavailable)" ) |
29 | } |
30 | } |
31 | |