pub fn swap(&mut self, index1: size_t, index2: size_t) -> Result<()> {
		let len = self.len();
		vector_index_check(index1, len)?;
		vector_index_check(index2, len)?;
		if index1 != index2 {
			unsafe { self.extern_swap(index1, index2) }
		}
		Ok(())
	}
/// Swap 2 elements in the Vector
Swap 2 elements in the Vector
Swap 2 elements in the Vector
pub fn swap(&mut self, index1: size_t, index2: size_t) -> Result<()> {
		let len = self.len();
		vector_index_check(index1, len)?;
		vector_index_check(index2, len)?;
		if index1 != index2 {
			unsafe { self.extern_swap(index1, index2) }
		}
		Ok(())
	}
pub fn swap ( & mut self , index1 : size_t , index2 : size_t ) -> Result < ( ) > { let len = self . len ( ) ; vector_index_check ( index1 , len ) ? ; vector_index_check ( index2 , len ) ? ; if index1 != index2 { unsafe { self . extern_swap ( index1 , index2 ) } } Ok ( ( ) ) }
Swap 2 elements in the Vector
Swap 2 elements in the Vector
&mut self
index1
size_t
index2
size_t