Struct subparse::timetypes::TimeSpan [] [src]

pub struct TimeSpan {
    pub start: TimePoint,
    pub end: TimePoint,
}

A time span (e.g. time in which a subtitle is shown).

Fields

Start of the time span.

End of the time span.

Methods

impl TimeSpan
[src]

Constructor of TimeSpans.

Get the length of the TimeSpan (can be negative).

Trait Implementations

impl Debug for TimeSpan
[src]

Formats the value using the given formatter.

impl Clone for TimeSpan
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for TimeSpan
[src]

impl PartialEq for TimeSpan
[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 TimeSpan
[src]

impl PartialOrd for TimeSpan
[src]

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

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

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

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

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

impl Ord for TimeSpan
[src]

This method returns an Ordering between self and other. Read more

impl Hash for TimeSpan
[src]

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

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

impl Add<TimeDelta> for TimeSpan
[src]

The resulting type after applying the + operator

The method for the + operator

impl Sub<TimeDelta> for TimeSpan
[src]

The resulting type after applying the - operator

The method for the - operator

impl AddAssign<TimeDelta> for TimeSpan
[src]

The method for the += operator

impl SubAssign<TimeDelta> for TimeSpan
[src]

The method for the -= operator