fn decode_leap_second_corrections(&self, reader: &mut Cursor<&[u8]>) -> Result< Vec<(Timespec, i32)>, std::io::Error> {
        let mut leap_second_corrections = vec![];

        for _ in 0..self.inner.tzh_leapcnt {
            let transition_time = try!((self.time_consumer)(reader));
            let seconds = try!(reader.read_i32::<BigEndian>());

            leap_second_corrections.push((Timespec::new(transition_time as i64, 0),
                                          seconds));
        }

        Ok(leap_second_corrections)
    }
/// returns a list of leap seconds transition changes
///
/// the function assumes that the provided cursor is located at the the start of the
/// table with leap second transitions
returns a list of leap seconds transition changes
the function assumes that the provided cursor is located at the the start of the
table with leap second transitions
returns a list of leap seconds transition changes the function assumes that the provided cursor is located at the the start of the table with leap second transitions
fn decode_leap_second_corrections(&self, reader: &mut Cursor<&[u8]>) -> Result< Vec<(Timespec, i32)>, std::io::Error> {
        let mut leap_second_corrections = vec![];
        for _ in 0..self.inner.tzh_leapcnt {
            let transition_time = try!((self.time_consumer)(reader));
            let seconds = try!(reader.read_i32::<BigEndian>());
            leap_second_corrections.push((Timespec::new(transition_time as i64, 0),
                                          seconds));
        }
        Ok(leap_second_corrections)
    }
fn decode_leap_second_corrections ( & self , reader : & mut Cursor < & [ u8 ] > ) -> Result < Vec < ( Timespec , i32 ) > , std :: io :: Error > { let mut leap_second_corrections = vec ! [ ] ; for _ in 0 .. self . inner . tzh_leapcnt { let transition_time = try ! ( ( self time_consumer ) ( reader ) ) ; let seconds = try ! ( reader read_i32 BigEndian ( ) ) ; leap_second_corrections . push ( ( Timespec :: new ( transition_time as i64 , 0 ) , seconds ) ) ; } Ok ( leap_second_corrections ) }
returns a list of leap seconds transition changes
the function assumes that the provided cursor is located at the the start of the
table with leap second transitions
returns a list of leap seconds transition changes the function assumes that the provided cursor is located at the the start of the table with leap second transitions
&self
reader
&mut Cursor<&[u8]>