Struct git2::IndexTime
[−]
[src]
pub struct IndexTime { /* fields omitted */ }
Time structure used in a git index entry.
Methods
impl IndexTime
[src]
fn new(seconds: i32, nanoseconds: u32) -> IndexTime
[src]
Creates a new time structure from its components.
fn seconds(&self) -> i32
[src]
Returns the number of seconds in the second component of this time.
fn nanoseconds(&self) -> u32
[src]
Returns the nanosecond component of this time.
Trait Implementations
impl Copy for IndexTime
[src]
impl Clone for IndexTime
[src]
fn clone(&self) -> IndexTime
[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 Eq for IndexTime
[src]
impl PartialEq for IndexTime
[src]
fn eq(&self, __arg_0: &IndexTime) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &IndexTime) -> bool
[src]
This method tests for !=
.
impl PartialOrd for IndexTime
[src]
fn partial_cmp(&self, other: &IndexTime) -> Option<Ordering>
[src]
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Ord for IndexTime
[src]
fn cmp(&self, other: &IndexTime) -> Ordering
[src]
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
[src]
ord_max_min
)Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
[src]
ord_max_min
)Compares and returns the minimum of two values. Read more