fn flush(&mut self) -> io::Result<()> {
		let mut file = File::create(self.path.clone())?;
		for elmt in &self.removed_tmp {
			match self.removed.binary_search(&elmt) {
				Ok(_) => continue,
				Err(idx) => {
					self.removed.insert(idx, *elmt);
				}
			}
		}
		for elmt in &self.removed {
			file.write_all(&ser::ser_vec(&elmt).unwrap()[..])?;
		}
		self.removed_tmp = vec![];
		self.removed_bak = vec![];
		file.sync_data()
	}
/// Flush the positions to remove to file.
Flush the positions to remove to file.
Flush the positions to remove to file .
fn flush(&mut self) -> io::Result<()> {
		let mut file = File::create(self.path.clone())?;
		for elmt in &self.removed_tmp {
			match self.removed.binary_search(&elmt) {
				Ok(_) => continue,
				Err(idx) => {
					self.removed.insert(idx, *elmt);
				}
			}
		}
		for elmt in &self.removed {
			file.write_all(&ser::ser_vec(&elmt).unwrap()[..])?;
		}
		self.removed_tmp = vec![];
		self.removed_bak = vec![];
		file.sync_data()
	}
fn flush ( & mut self ) -> io :: Result < ( ) > { let mut file = File :: create ( self . path . clone ( ) ) ? ; for elmt in & self . removed_tmp { match self . removed . binary_search ( & elmt ) { Ok ( _ ) => continue , Err ( idx ) => { self . removed . insert ( idx , * elmt ) ; } } } for elmt in & self . removed { file . write_all ( & ser :: ser_vec ( & elmt ) . unwrap ( ) [ .. ] ) ? ; } self . removed_tmp = vec ! [ ] ; self . removed_bak = vec ! [ ] ; file . sync_data ( ) }
Flush the positions to remove to file.
Flush the positions to remove to file .
&mut self