mozjs_sys::jsapi::mozilla

Type Alias 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

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

impl PartialEq for BaseTimeDuration

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

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