rust_
algorithm_
club
0.0.1
In rust_
algorithm_
club::
searching
rust_algorithm_club
::
searching
Function
linear_search
Copy item path
Source
pub fn linear_search<T>(arr: &
[T]
, target:
&T
) ->
Option
<
usize
>
where T:
PartialEq
,
Expand description
Linear search.