Skip to content

Commit

Permalink
Added impl section comment headers
Browse files Browse the repository at this point in the history
  • Loading branch information
danwilliams committed Mar 10, 2024
1 parent a9021eb commit 7c76807
Show file tree
Hide file tree
Showing 4 changed files with 210 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crates/rubedo/src/chrono.rs
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,7 @@ pub trait DurationExt {
fn num_microseconds_full(&self) -> i128;
}

//󰭅 Duration
impl DurationExt for Duration {
// humanize
fn humanize(&self) -> String {
Expand Down Expand Up @@ -416,6 +417,7 @@ pub trait MonthsExt {
fn num_years(&self) -> u32;
}

//󰭅 Months
impl MonthsExt for Months {
// months
fn months(months: u32) -> Self {
Expand Down Expand Up @@ -678,6 +680,7 @@ pub trait NaiveDateExt {
fn end_of_year_opt(year: i32) -> Option<NaiveDate>;
}

//󰭅 NaiveDate
impl NaiveDateExt for NaiveDate {
// today
fn today() -> Self {
Expand Down
Loading

0 comments on commit 7c76807

Please sign in to comment.