🏃♂️
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use serde::{Deserialize, Serialize}; | |
#[derive(sqlx::Type, Serialize, Deserialize, Debug)] | |
#[sqlx(type_name = "status", rename_all = "lowercase")] | |
pub enum Status { | |
Active, | |
Inactive, | |
Suspended | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fn quick_sort_homebrew(mut vec1: Vec<i32>, pivot_index: usize) -> Vec<i32> { | |
println!("func ran"); | |
let mut swap_position: usize = 0; | |
for num in &vec1 { | |
if num < &vec1[pivot_index] { | |
swap_position += 1; | |
} | |
} |