Lines Matching refs:as_ref

1889                     Ok(valid) => Ok(valid.as_ref()),  in try_ref_from_bytes()
1891 Err(e.map_src(|src| src.as_bytes::<BecauseImmutable>().as_ref()).into()) in try_ref_from_bytes()
1895 Err(e) => Err(e.map_src(Ptr::as_ref).into()), in try_ref_from_bytes()
2533 Ok(source) => Ok(source.as_ref()), in try_ref_from_bytes_with_elems()
2535 Err(e.map_src(|src| src.as_bytes::<BecauseImmutable>().as_ref()).into()) in try_ref_from_bytes_with_elems()
2539 Err(e) => Err(e.map_src(Ptr::as_ref).into()), in try_ref_from_bytes_with_elems()
3309 Ok(valid) => Ok((valid.as_ref(), prefix_suffix.as_ref())), in try_ref_from_prefix_suffix()
3310 Err(e) => Err(e.map_src(|src| src.as_bytes::<BecauseImmutable>().as_ref()).into()), in try_ref_from_prefix_suffix()
3313 Err(e) => Err(e.map_src(Ptr::as_ref).into()), in try_ref_from_prefix_suffix()
4161 Ok(ptr) => Ok(ptr.recall_validity().as_ref()), in ref_from_bytes()
4162 Err(err) => Err(err.map_src(|src| src.as_ref())), in ref_from_bytes()
4719 Ok(slf) => Ok(slf.recall_validity().as_ref()), in ref_from_bytes_with_elems()
4720 Err(err) => Err(err.map_src(|s| s.as_ref())), in ref_from_bytes_with_elems()
5482 .map_err(|err| err.map_src(|s| s.as_ref()))?; in ref_from_prefix_suffix()
5483 Ok((slf.recall_validity().as_ref(), prefix_suffix.as_ref())) in ref_from_prefix_suffix()
6958 <[bool]>::new_box_zeroed_with_elems(3).unwrap().as_ref(), in test_from_zeros_only()
6962 <[char]>::new_box_zeroed_with_elems(3).unwrap().as_ref(), in test_from_zeros_only()
6966 assert_eq!(bool::new_vec_zeroed(3).unwrap().as_ref(), [false, false, false]); in test_from_zeros_only()
6967 assert_eq!(char::new_vec_zeroed(3).unwrap().as_ref(), ['\0', '\0', '\0']); in test_from_zeros_only()