Struct git2::IndexTime [−][src]
pub struct IndexTime { /* fields omitted */ }Time structure used in a git index entry.
Methods
impl IndexTime[src]
impl IndexTimepub fn new(seconds: i32, nanoseconds: u32) -> IndexTime[src]
pub fn new(seconds: i32, nanoseconds: u32) -> IndexTimeCreates a new time structure from its components.
pub fn seconds(&self) -> i32[src]
pub fn seconds(&self) -> i32Returns the number of seconds in the second component of this time.
pub fn nanoseconds(&self) -> u32[src]
pub fn nanoseconds(&self) -> u32Returns the nanosecond component of this time.
Trait Implementations
impl Copy for IndexTime[src]
impl Copy for IndexTimeimpl Clone for IndexTime[src]
impl Clone for IndexTimefn clone(&self) -> IndexTime[src]
fn clone(&self) -> IndexTimeReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl Eq for IndexTime[src]
impl Eq for IndexTimeimpl PartialEq for IndexTime[src]
impl PartialEq for IndexTimefn eq(&self, other: &IndexTime) -> bool[src]
fn eq(&self, other: &IndexTime) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &IndexTime) -> bool[src]
fn ne(&self, other: &IndexTime) -> boolThis method tests for !=.
impl PartialOrd for IndexTime[src]
impl PartialOrd for IndexTimefn partial_cmp(&self, other: &IndexTime) -> Option<Ordering>[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[src]
fn lt(&self, other: &Rhs) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &Rhs) -> bool1.0.0[src]
fn le(&self, other: &Rhs) -> boolThis 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[src]
fn gt(&self, other: &Rhs) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &Rhs) -> bool1.0.0[src]
fn ge(&self, other: &Rhs) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl Ord for IndexTime[src]
impl Ord for IndexTimefn cmp(&self, other: &IndexTime) -> Ordering[src]
fn cmp(&self, other: &IndexTime) -> OrderingThis method returns an Ordering between self and other. Read more
fn max(self, other: Self) -> Self1.21.0[src]
fn max(self, other: Self) -> SelfCompares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src]
fn min(self, other: Self) -> SelfCompares and returns the minimum of two values. Read more