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
Creates a new time structure from its components.
fn seconds(&self) -> i32
Returns the number of seconds in the second component of this time.
fn nanoseconds(&self) -> u32
Returns the nanosecond component of this time.
Trait Implementations
impl Copy for IndexTime[src]
impl Clone for IndexTime[src]
fn clone(&self) -> IndexTime
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl Eq for IndexTime[src]
impl PartialEq for IndexTime[src]
fn eq(&self, __arg_0: &IndexTime) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &IndexTime) -> bool
This method tests for !=.
impl PartialOrd for IndexTime[src]
fn partial_cmp(&self, other: &IndexTime) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool1.0.0
This method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &Rhs) -> bool1.0.0
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) -> bool1.0.0
This method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &Rhs) -> bool1.0.0
This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more