fn remove_item<T>(vec: &mut Vec<T>, index: usize) -> Option<T> {
    match vec.get(index) {
        Some(_) => Some(vec.remove(index)),
        None => None,
    }
}
/// Save remove of an object from an vec is nightly right now
///
/// Please track this rust commit to check when it's get available to remove this function
/// #40062 remove_item --> Bad Rust, this should be avilable already OOTB ;)
Save remove of an object from an vec is nightly right now
Please track this rust commit to check when it's get available to remove this function
Save remove of an object from an vec is nightly right now Please track this rust commit to check when it ' s get available to remove this function
fn remove_item<T>(vec: &mut Vec<T>, index: usize) -> Option<T> {
    match vec.get(index) {
        Some(_) => Some(vec.remove(index)),
        None => None,
    }
}
fn remove_item < T > ( vec : & mut Vec < T > , index : usize ) -> Option < T > { match vec . get ( index ) { Some ( _ ) => Some ( vec . remove ( index ) ) , None => None , } }
Save remove of an object from an vec is nightly right now
Please track this rust commit to check when it's get available to remove this function
Save remove of an object from an vec is nightly right now Please track this rust commit to check when it ' s get available to remove this function
vec
&mut Vec<T>
index
usize
vec
&mut Vec<T>
index
usize
40062 remove_item --> bad rust, this should be avilable already ootb ;)
None