1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
//! # feiertage
//!
//! This crate provides functionality to calculate and verify German holidays.
//!
//! Its main capabilities include:
//! 1. **Holiday Detection**:
//! - Determine if a specific date is a holiday in a given German region.
//! - Supports all federal and regional holidays, including holidays specific to certain communities (e.g., Augsburg's Friedensfest).
//!
//! 2. **Region-Specific Calculation**:
//! - The crate defines German regions ([`Region`]) to handle region-specific holidays.
//! - These include Catholic and Protestant variations where applicable.
//!
//! 3. **Holiday List**:
//! - Provides a flexible way to retrieve region-specific holidays or nationwide holidays.
//!
//!
//! # Example
//! ```
//! use feiertage::HolidayExt;
//! use feiertage::Region;
//!
//! let date = time::Date::from_calendar_date(2023, time::Month::December, 25).unwrap();
//!
//! // Returns true if the date is a holiday in the region of Bayern
//! assert!(date.is_holiday(Region::Bayern));
//! ```
pub
pub
pub use crate*;
pub use crate*;
/// A trait that provides an extension method to check if a given date is a holiday
/// within a specified region.
///
/// # Example
/// ```
/// use feiertage::HolidayExt;
/// use feiertage::Region;
///
/// let date = time::Date::from_calendar_date(2023, time::Month::December, 25).unwrap();
///
/// // Returns true if the date is a holiday in the region of Bayern
/// assert!(date.is_holiday(Region::Bayern));
/// ```