Crate sorted_rs

Source

Enums§

Trend
Trend is used to describe the trending of input which u want to check

Functions§

is_sorted
example: let nums = vec![1, 2, 3, 4, 5, ….]; is_sorted(&nums, Trend::Ascending); let nums = vec![9, 8, 7, 6, 5, ….]; is_sorted(&nums, Trend:Descending);