Type Alias mozjs::jsapi::mozilla::TimeDuration

source ·
pub type TimeDuration = BaseTimeDuration;
Expand description

Specialization of BaseTimeDuration that uses TimeDurationValueCalculator for arithmetic on the mValue member.

Use this class for time durations that are not expected to hold values of Forever (or the negative equivalent) or when such time duration are not expected to be used in arithmetic operations.

Aliased Type§

struct TimeDuration {
    pub mValue: i64,
}

Fields§

§mValue: i64

Trait Implementations§

source§

impl Clone for BaseTimeDuration

source§

fn clone(&self) -> BaseTimeDuration

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for BaseTimeDuration

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl PartialEq<BaseTimeDuration> for BaseTimeDuration

source§

fn eq(&self, other: &BaseTimeDuration) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for BaseTimeDuration

source§

impl StructuralPartialEq for BaseTimeDuration