Struct beats::Beat [] [src]

pub struct Beat { /* fields omitted */ }

Struct for representing a .beat

Methods

impl Beat
[src]

[src]

Create a Beat for the current time

Example

use beats::Beat;

let now = Beat::now();
println!("It is currently: {}", now);

Trait Implementations

impl Debug for Beat
[src]

[src]

Formats the value using the given formatter.

impl Display for Beat
[src]

[src]

Formats the value using the given formatter. Read more

impl<Tz: TimeZone> From<DateTime<Tz>> for Beat
[src]

[src]

Performs the conversion.

impl PartialEq for Beat
[src]

[src]

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

1.0.0
[src]

This method tests for !=.

impl PartialOrd for Beat
[src]

[src]

This method returns an ordering between self and other values if one exists. Read more

1.0.0
[src]

This method tests less than (for self and other) and is used by the < operator. Read more

1.0.0
[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

1.0.0
[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

1.0.0
[src]

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more