mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-29 11:37:39 +00:00
18 lines
283 B
Rust
18 lines
283 B
Rust
![]() |
pub trait Sort {
|
||
|
fn name() -> String;
|
||
|
|
||
|
fn sort<T>(v: &mut [T])
|
||
|
where
|
||
|
T: Ord;
|
||
|
|
||
|
fn sort_by<T, F>(v: &mut [T], compare: F)
|
||
|
where
|
||
|
F: FnMut(&T, &T) -> std::cmp::Ordering;
|
||
|
}
|
||
|
|
||
|
mod ffi_types;
|
||
|
mod known_good_stable_sort;
|
||
|
mod patterns;
|
||
|
mod tests;
|
||
|
mod zipf;
|