Lines Matching defs:input
1052 pub fn vec_cast<T, U>(input: Vec<T>) -> Vec<U> {
1053 input.into_iter().map(|e| unsafe { std::mem::transmute_copy(&e) }).collect()
3817 // all of the indexing operations on each input.
3894 // a similar input for which DATA[input] succeeds, and the corresponding
3895 // output str. This helps validate "critical points" where an input range
3897 // (such as the input `len..len`, which is just barely valid)
4394 ($input: expr, $expected_valid_up_to: expr, $expected_error_len: expr) => {
4395 let error = from_utf8($input).unwrap_err();
5281 panic!("Did not cover whole input");
10920 ($input:ident, $func:ident) => {
10921 let len = $input.len();
10926 $input.to_owned().$func(|a, b| {
10939 let v = $input.to_owned();
10987 let mut input = (0..len)
10996 for c in &mut input {
11004 input[a..b].reverse();
11006 input.swap(a, b);
11011 test!(input, sort_by);
11012 test!(input, sort_unstable_by);
16704 /// let input = b"Hello \xF0\x90\x80World";
16705 /// let output = String::from_utf8_lossy(input);
18932 /// fn abs_all(input: &mut Cow<[i32]>) {
18933 /// for i in 0..input.len() {
18934 /// let v = input[i];
18937 /// input.to_mut()[i] = -v;
18942 /// // No clone occurs because `input` doesn't need to be mutated.
18944 /// let mut input = Cow::from(&slice[..]);
18945 /// abs_all(&mut input);
18947 /// // Clone occurs because `input` needs to be mutated.
18949 /// let mut input = Cow::from(&slice[..]);
18950 /// abs_all(&mut input);
18952 /// // No clone occurs because `input` is already owned.
18953 /// let mut input = Cow::from(vec![-1, 0, 1]);
18954 /// abs_all(&mut input);
21616 // See Weak::as_ptr for context on how the input pointer is derived.
21961 // and extern types, the input safety requirement is currently enough to
25028 // See Weak::as_ptr for context on how the input pointer is derived.
25790 // and extern types, the input safety requirement is currently enough to
25943 //! padding is applied is to format your input, then pad this resulting string
26008 //! first input holds the `usize` precision, and the second holds the value to print. Note that
26010 //! to the *value* to print, and the `precision` must come in the input preceding `<arg>`.
49330 /// The input iterator `replace_with` is only consumed when the `Splice` value is dropped.
49671 /// If the length doesn't match, the input comes back in `Err`: