1 //- /libcore.rs crate:core
2 //! Signatures of traits, types and functions from the core lib for use in tests.
6 fn cmp(&self, other: &Self) -> Ordering;
7 fn max(self, other: Self) -> Self;
8 fn min(self, other: Self) -> Self;
9 fn clamp(self, min: Self, max: Self) -> Self;
15 fn from(t: T) -> Self;
19 pub fn into(self) -> T;
40 convert::{From, Into},
42 iter::{IntoIterator, Iterator},
43 ops::{Fn, FnMut, FnOnce},
44 option::Option::{self, *},
49 pub use prelude::rust_2018::*;
50 //- /libstd.rs crate:std deps:core
51 //! Signatures of traits, types and functions from the std lib for use in tests.
53 /// Docs for return_keyword