diff --git a/coordinates/src/bin/default_map.rs b/coordinates/src/bin/default_map.rs index ec946a4..b5f6ba4 100644 --- a/coordinates/src/bin/default_map.rs +++ b/coordinates/src/bin/default_map.rs @@ -1,3 +1,15 @@ +/* +Copyright 2023, Savanni D'Gerinel + +This file is part of the Luminescent Dreams Tools. + +Luminescent Dreams Tools is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. + +Luminescent Dreams Tools is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + +You should have received a copy of the GNU General Public License along with Lumeto. If not, see . +*/ + use coordinates::hex_map; use std::path::PathBuf; diff --git a/coordinates/src/hex.rs b/coordinates/src/hex.rs index 396a5ca..d3b9880 100644 --- a/coordinates/src/hex.rs +++ b/coordinates/src/hex.rs @@ -1,3 +1,15 @@ +/* +Copyright 2022-2023, Savanni D'Gerinel + +This file is part of the Luminescent Dreams Tools. + +Luminescent Dreams Tools is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. + +Luminescent Dreams Tools is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + +You should have received a copy of the GNU General Public License along with Lumeto. If not, see . +*/ + /// Ĉi-tiu modulo enhavas la elementojn por kub-koordinato. /// /// This code is based on https://www.redblobgames.com/grids/hexagons/ diff --git a/emseries/src/criteria.rs b/emseries/src/criteria.rs index b1c04cf..1a40c0f 100644 --- a/emseries/src/criteria.rs +++ b/emseries/src/criteria.rs @@ -1,3 +1,15 @@ +/* +Copyright 2020-2023, Savanni D'Gerinel + +This file is part of the Luminescent Dreams Tools. + +Luminescent Dreams Tools is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. + +Luminescent Dreams Tools is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + +You should have received a copy of the GNU General Public License along with Lumeto. If not, see . +*/ + use date_time_tz::DateTimeTz; use types::Recordable; @@ -8,14 +20,12 @@ pub trait Criteria { fn apply(&self, record: &T) -> bool; } - /// Specify two criteria that must both be matched. pub struct And { pub lside: A, pub rside: B, } - impl Criteria for And where A: Criteria, @@ -26,14 +36,12 @@ where } } - /// Specify two criteria, either of which may be matched. pub struct Or { pub lside: A, pub rside: B, } - /// Specify the starting time for a search. This consists of a UTC timestamp and a specifier as to /// whether the exact time is included in the search criteria. pub struct StartTime { @@ -41,7 +49,6 @@ pub struct StartTime { pub incl: bool, } - impl Criteria for StartTime { fn apply(&self, record: &T) -> bool { if self.incl { @@ -52,7 +59,6 @@ impl Criteria for StartTime { } } - /// Specify the ending time for a search. This consists of a UTC timestamp and a specifier as to /// whether the exact time is included in the search criteria. pub struct EndTime { @@ -60,7 +66,6 @@ pub struct EndTime { pub incl: bool, } - impl Criteria for EndTime { fn apply(&self, record: &T) -> bool { if self.incl { @@ -71,7 +76,6 @@ impl Criteria for EndTime { } } - /// Specify a list of tags that must exist on the record. pub struct Tags { pub tags: Vec, @@ -80,13 +84,10 @@ pub struct Tags { impl Criteria for Tags { fn apply(&self, record: &T) -> bool { let record_tags = record.tags(); - self.tags - .iter() - .all(|v| record_tags.contains(v)) + self.tags.iter().all(|v| record_tags.contains(v)) } } - /// Specify a criteria that searches for records matching an exact time. pub fn exact_time(time: DateTimeTz) -> And { And { @@ -98,7 +99,6 @@ pub fn exact_time(time: DateTimeTz) -> And { } } - /// Specify a criteria that searches for all records within a time range. pub fn time_range( start: DateTimeTz, diff --git a/emseries/src/date_time_tz.rs b/emseries/src/date_time_tz.rs index f9c7993..287e2e1 100644 --- a/emseries/src/date_time_tz.rs +++ b/emseries/src/date_time_tz.rs @@ -1,3 +1,15 @@ +/* +Copyright 2020-2023, Savanni D'Gerinel + +This file is part of the Luminescent Dreams Tools. + +Luminescent Dreams Tools is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. + +Luminescent Dreams Tools is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + +You should have received a copy of the GNU General Public License along with Lumeto. If not, see . +*/ + extern crate chrono; extern crate chrono_tz; diff --git a/emseries/src/interval.rs b/emseries/src/interval.rs index 2a0c960..e3da1e6 100644 --- a/emseries/src/interval.rs +++ b/emseries/src/interval.rs @@ -1,3 +1,15 @@ +/* +Copyright 2020-2023, Savanni D'Gerinel + +This file is part of the Luminescent Dreams Tools. + +Luminescent Dreams Tools is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. + +Luminescent Dreams Tools is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + +You should have received a copy of the GNU General Public License along with Lumeto. If not, see . +*/ + // NOTE: this module is a candidate for extraction into its own crate, or should be replaced with // an existing crate. diff --git a/emseries/src/lib.rs b/emseries/src/lib.rs index 4b503d2..79d1885 100644 --- a/emseries/src/lib.rs +++ b/emseries/src/lib.rs @@ -1,3 +1,15 @@ +/* +Copyright 2020-2023, Savanni D'Gerinel + +This file is part of the Luminescent Dreams Tools. + +Luminescent Dreams Tools is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. + +Luminescent Dreams Tools is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + +You should have received a copy of the GNU General Public License along with Lumeto. If not, see . +*/ + /*! An Embedded Time Series Database This library provides a low-intensity time series database meant to be embedded inside of an diff --git a/emseries/src/series.rs b/emseries/src/series.rs index e809860..8fad160 100644 --- a/emseries/src/series.rs +++ b/emseries/src/series.rs @@ -1,3 +1,15 @@ +/* +Copyright 2020-2023, Savanni D'Gerinel + +This file is part of the Luminescent Dreams Tools. + +Luminescent Dreams Tools is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. + +Luminescent Dreams Tools is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + +You should have received a copy of the GNU General Public License along with Lumeto. If not, see . +*/ + extern crate serde; extern crate serde_json; extern crate uuid; diff --git a/emseries/src/types.rs b/emseries/src/types.rs index a89e88d..afebcfb 100644 --- a/emseries/src/types.rs +++ b/emseries/src/types.rs @@ -1,3 +1,15 @@ +/* +Copyright 2020-2023, Savanni D'Gerinel + +This file is part of the Luminescent Dreams Tools. + +Luminescent Dreams Tools is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. + +Luminescent Dreams Tools is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + +You should have received a copy of the GNU General Public License along with Lumeto. If not, see . +*/ + use date_time_tz::DateTimeTz; use serde::de::DeserializeOwned; use serde::ser::Serialize; diff --git a/emseries/tests/test_io.rs b/emseries/tests/test_io.rs index 34b0bce..4c7aff9 100644 --- a/emseries/tests/test_io.rs +++ b/emseries/tests/test_io.rs @@ -1,3 +1,15 @@ +/* +Copyright 2020-2023, Savanni D'Gerinel + +This file is part of the Luminescent Dreams Tools. + +Luminescent Dreams Tools is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. + +Luminescent Dreams Tools is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + +You should have received a copy of the GNU General Public License along with Lumeto. If not, see . +*/ + #[macro_use] extern crate serde_derive; diff --git a/fluent-ergonomics/src/lib.rs b/fluent-ergonomics/src/lib.rs index e41c375..21a288a 100644 --- a/fluent-ergonomics/src/lib.rs +++ b/fluent-ergonomics/src/lib.rs @@ -1,3 +1,15 @@ +/* +Copyright 2020-2023, Savanni D'Gerinel + +This file is part of the Luminescent Dreams Tools. + +Luminescent Dreams Tools is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. + +Luminescent Dreams Tools is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + +You should have received a copy of the GNU General Public License along with Lumeto. If not, see . +*/ + //! Provide a more ergonomic interface to the base Fluent library //! //! The Fluent class makes it easier to load translation bundles with language fallbacks and to go diff --git a/ifc/src/lib.rs b/ifc/src/lib.rs index f99b294..d807833 100644 --- a/ifc/src/lib.rs +++ b/ifc/src/lib.rs @@ -1,3 +1,15 @@ +/* +Copyright 2020-2023, Savanni D'Gerinel + +This file is part of the Luminescent Dreams Tools. + +Luminescent Dreams Tools is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. + +Luminescent Dreams Tools is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + +You should have received a copy of the GNU General Public License along with Lumeto. If not, see . +*/ + extern crate chrono; extern crate chrono_tz; diff --git a/ifc/src/today.rs b/ifc/src/today.rs index bdd6dfb..3582783 100644 --- a/ifc/src/today.rs +++ b/ifc/src/today.rs @@ -1,3 +1,15 @@ +/* +Copyright 2020-2023, Savanni D'Gerinel + +This file is part of the Luminescent Dreams Tools. + +Luminescent Dreams Tools is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. + +Luminescent Dreams Tools is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + +You should have received a copy of the GNU General Public License along with Lumeto. If not, see . +*/ + extern crate chrono; extern crate chrono_tz; extern crate international_fixed_calendar as IFC; diff --git a/ifc/src/web.rs b/ifc/src/web.rs index cb0119b..43e541c 100644 --- a/ifc/src/web.rs +++ b/ifc/src/web.rs @@ -1,3 +1,15 @@ +/* +Copyright 2020-2023, Savanni D'Gerinel + +This file is part of the Luminescent Dreams Tools. + +Luminescent Dreams Tools is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. + +Luminescent Dreams Tools is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + +You should have received a copy of the GNU General Public License along with Lumeto. If not, see . +*/ + use chrono::{Datelike, Utc}; use international_fixed_calendar as IFC; use iron::headers;