Struct style::values::computed::time::Time
[−]
[src]
pub struct Time { /* fields omitted */ }
A computed <time>
value.
Methods
impl Time
[src]
pub fn from_seconds(seconds: CSSFloat) -> Self
[src]
Creates a time value from a seconds amount.
pub fn zero() -> Self
[src]
Returns 0s
.
pub fn seconds(&self) -> CSSFloat
[src]
Returns the amount of seconds this time represents.
Trait Implementations
impl Clone for Time
[src]
fn clone(&self) -> Time
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for Time
[src]
impl Debug for Time
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl MallocSizeOf for Time
[src]
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
[src]
Measure the heap usage of all descendant heap-allocated structures, but not the space taken up by the value itself. Read more
impl PartialEq for Time
[src]
fn eq(&self, __arg_0: &Time) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Time) -> bool
[src]
This method tests for !=
.
impl PartialOrd for Time
[src]
fn partial_cmp(&self, __arg_0: &Time) -> Option<Ordering>
[src]
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &Time) -> bool
[src]
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &Time) -> bool
[src]
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, __arg_0: &Time) -> bool
[src]
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &Time) -> bool
[src]
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more