fn flush_truncate(&mut self, last_offs: u32) -> io::Result<()> {
		let mut file = File::create(format!("{}.{}", self.path.clone(), last_offs))?;
		for elmt in &self.removed {
			file.write_all(&ser::ser_vec(&elmt).unwrap()[..])?;
		}
		file.sync_data()
	}
// DEBUG: saves the remove log to the side before each truncate
saves the remove log to the side before each truncate
saves the remove log to the side before each truncate
fn flush_truncate(&mut self, last_offs: u32) -> io::Result<()> {
		let mut file = File::create(format!("{}.{}", self.path.clone(), last_offs))?;
		for elmt in &self.removed {
			file.write_all(&ser::ser_vec(&elmt).unwrap()[..])?;
		}
		file.sync_data()
	}
fn flush_truncate ( & mut self , last_offs : u32 ) -> io :: Result < ( ) > { let mut file = File :: create ( format ! ( " " self path clone ( ) last_offs ) ) ? ; for elmt in & self . removed { file . write_all ( & ser :: ser_vec ( & elmt ) . unwrap ( ) [ .. ] ) ? ; } file . sync_data ( ) }
DEBUG: saves the remove log to the side before each truncate
DEBUG : saves the remove log to the side before each truncate
&mut self
last_offs
u32