Make round module public

(so we don't need to show it in the main documentation)
This commit is contained in:
Paul Dicker 2023-09-25 13:44:37 +02:00 committed by Paul Dicker
parent 819dea0480
commit 5237de6e0a
2 changed files with 3 additions and 1 deletions

View File

@ -532,7 +532,7 @@ pub use offset::LocalResult;
#[doc(inline)] #[doc(inline)]
pub use offset::{FixedOffset, Offset, TimeZone, Utc}; pub use offset::{FixedOffset, Offset, TimeZone, Utc};
mod round; pub mod round;
pub use round::{DurationRound, RoundingError, SubsecRound}; pub use round::{DurationRound, RoundingError, SubsecRound};
mod weekday; mod weekday;

View File

@ -1,6 +1,8 @@
// This is a part of Chrono. // This is a part of Chrono.
// See README.md and LICENSE.txt for details. // See README.md and LICENSE.txt for details.
//! Functionality for rounding or truncating a `DateTime` by a `Duration`.
use crate::datetime::DateTime; use crate::datetime::DateTime;
use crate::duration::Duration; use crate::duration::Duration;
use crate::NaiveDateTime; use crate::NaiveDateTime;