some common rust_algorithms, Everyone can participate, and the project will continue to be updated, all the algorithms comes from <Introduction to Algorithms III>
///线性查找
///当找到时返回下标,否则Option::None
///# Examples
///```
///let mut a = [7,3,5,1,9,65,4,5];
///use algori::search::linearity_search;
///let c = linearity_search::<i32>(&a,&65);
///assert_eq!(c,Some(5));
///```
pubfnsearch<T:std::cmp::PartialEq>(a:&[T], v:&T)->Option<usize>{let len =(*a).len();letmut i =0;while i < len {if(*a)[i]!=*v {
i = i +1;}else{returnOption::Some(i)};}Option::None
}