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]

[src]

Constructor of TimeSpans.

[src]

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

Trait Implementations

impl Debug for TimeSpan
[src]

[src]

Formats the value using the given formatter.

impl Clone for TimeSpan
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for TimeSpan
[src]

impl PartialEq for TimeSpan
[src]

[src]

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

[src]

This method tests for !=.

impl Eq for TimeSpan
[src]

impl PartialOrd for TimeSpan
[src]

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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]

[src]

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

[src]

🔬 This is a nightly-only experimental API. (ord_max_min)

Compares and returns the maximum of two values. Read more

[src]

🔬 This is a nightly-only experimental API. (ord_max_min)

Compares and returns the minimum of two values. Read more

impl Hash for TimeSpan
[src]

[src]

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

1.3.0
[src]

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.

[src]

Performs the + operation.

impl Sub<TimeDelta> for TimeSpan
[src]

The resulting type after applying the - operator.

[src]

Performs the - operation.

impl AddAssign<TimeDelta> for TimeSpan
[src]

[src]

Performs the += operation.

impl SubAssign<TimeDelta> for TimeSpan
[src]

[src]

Performs the -= operation.