Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/source schedulefields #72

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ extern crate chrono_tz;
pub mod error;
mod schedule;
mod time_unit;
mod ordinal;
mod specifier;
mod queries;
mod parsing;

pub use crate::schedule::Schedule;
pub use crate::schedule::ScheduleFields;
pub use crate::time_unit::TimeUnitSpec;
8 changes: 8 additions & 0 deletions src/ordinal.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
use std::collections::BTreeSet;

pub type Ordinal = u32;
// TODO: Make OrdinalSet an enum.
// It should either be a BTreeSet of ordinals or an `All` option to save space.
// `All` can iterate from inclusive_min to inclusive_max and answer membership
// queries
pub type OrdinalSet = BTreeSet<Ordinal>;
Loading