Struct lunardate::LunarDate[][src]

pub struct LunarDate { /* fields omitted */ }

Represents a lunar date

Methods

impl LunarDate
[src]

Construct a new LunarDate struct

Construct a new LunarDate from solar date

Construct a new LunarDate from chrono's NaiveDate

Return lunar year

Return lunar month

Return lunar day

Is leap month?

Convert LunarDate to solar date

Return lunar date of solar date of today

Trait Implementations

impl Debug for LunarDate
[src]

Formats the value using the given formatter. Read more

impl Clone for LunarDate
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for LunarDate
[src]

impl PartialEq for LunarDate
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for LunarDate
[src]

impl Hash for LunarDate
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Add<Duration> for LunarDate
[src]

The resulting type after applying the + operator.

Performs the + operation.

impl Add<Duration> for LunarDate
[src]

The resulting type after applying the + operator.

Performs the + operation.

impl Sub<Duration> for LunarDate
[src]

The resulting type after applying the - operator.

Performs the - operation.

impl Sub<Duration> for LunarDate
[src]

The resulting type after applying the - operator.

Performs the - operation.

impl Sub<LunarDate> for LunarDate
[src]

The resulting type after applying the - operator.

Performs the - operation.

impl Sub<NaiveDate> for LunarDate
[src]

The resulting type after applying the - operator.

Performs the - operation.

Auto Trait Implementations

impl Send for LunarDate

impl Sync for LunarDate