fn differ_index(&self, other: &Self) -> Option<usize> {
        debug_assert_eq!(self.created, other.created);
        for (i, (s, o)) in self.events.iter().zip(other.events.iter()).enumerate() {
            if s.time != o.time {
                return Some(i);
            }
        }
        if self.events.len() == other.events.len() {
            None
        } else {
            Some(self.events.len().min(other.events.len()))
        }
    }
/// Index of the the last common event
/// Must be only used with two books with common history
/// Returns None in case the event lists are equal
Index of the the last common event
Must be only used with two books with common history
Returns None in case the event lists are equal
Index of the the last common event Must be only used with two books with common history Returns None in case the event lists are equal
fn differ_index(&self, other: &Self) -> Option<usize> {
        debug_assert_eq!(self.created, other.created);
        for (i, (s, o)) in self.events.iter().zip(other.events.iter()).enumerate() {
            if s.time != o.time {
                return Some(i);
            }
        }
        if self.events.len() == other.events.len() {
            None
        } else {
            Some(self.events.len().min(other.events.len()))
        }
    }
fn differ_index ( & self , other : & Self ) -> Option < usize > { debug_assert_eq ! ( self created other created ) ; for ( i , ( s , o ) ) in self . events . iter ( ) . zip ( other . events . iter ( ) ) . enumerate ( ) { if s . time != o . time { return Some ( i ) ; } } if self . events . len ( ) == other . events . len ( ) { None } else { Some ( self . events . len ( ) . min ( other . events . len ( ) ) ) } }
Index of the the last common event
Must be only used with two books with common history
Returns None in case the event lists are equal
Index of the the last common event Must be only used with two books with common history Returns None in case the event lists are equal
&self
other
&Self
&self
other
&Self