fn preceding(&self, mut day: NaiveDate) -> Option<NaiveDate> {
        if self.is_business(day) {
            return Some(day);
        }

        while day < chrono::naive::MIN_DATE {
            day -= Duration::days(1);
            if self.is_business(day) {
                return Some(day);
            }
        }

        None
    }
/// Calculates the adjusted date using the `preceding` convention and returns it in a form of
/// `Option<NaiveDate>` enum.
///
/// If the supplied date is a business date, it is returned with no adjustment.
/// Otherwise, the adjusted date will be the first business day before the unadjusted date.
///
/// Returns `None` if no such business day exist.
Calculates the adjusted date using the `preceding` convention and returns it in a form of
`Option` enum.

If the supplied date is a business date, it is returned with no adjustment.
Otherwise, the adjusted date will be the first business day before the unadjusted date.

Returns `None` if no such business day exist.
Calculates the adjusted date using the ` preceding ` convention and returns it in a form of ` Option ` enum . If the supplied date is a business date it is returned with no adjustment . Otherwise the adjusted date will be the first business day before the unadjusted date . Returns ` None ` if no such business day exist .
fn preceding(&self, mut day: NaiveDate) -> Option<NaiveDate> {
        if self.is_business(day) {
            return Some(day);
        }
        while day < chrono::naive::MIN_DATE {
            day -= Duration::days(1);
            if self.is_business(day) {
                return Some(day);
            }
        }
        None
    }
fn preceding ( & self , mut day : NaiveDate ) -> Option < NaiveDate > { if self . is_business ( day ) { return Some ( day ) ; } while day < chrono :: naive :: MIN_DATE { day -= Duration :: days ( 1 ) ; if self . is_business ( day ) { return Some ( day ) ; } } None }
Calculates the adjusted date using the `preceding` convention and returns it in a form of
`Option<NaiveDate>` enum.
Calculates the adjusted date using the ` preceding ` convention and returns it in a form of ` Option<NaiveDate > ` enum .
&self
day
NaiveDate