Lines Matching refs:ReadOnly
434 impl<$($tyvar)?> SizeEq<ReadOnly<$atomic>> for ReadOnly<$prim> {
895 let c: Ptr<'_, [ReadOnly<T>; N], _> = c.cast::<_, crate::pointer::cast::CastSized, _>();
896 let c: Ptr<'_, [ReadOnly<T>], _> = c.as_slice();
897 let c: Ptr<'_, ReadOnly<[T]>, _> = c.cast::<_, crate::pointer::cast::CastUnsized, _>();
912 let c: Ptr<'_, [ReadOnly<T>], _> = c.cast::<_, crate::pointer::cast::CastUnsized, _>();
1401 fn with_passing_test_cases<F: Fn(Box<ReadOnly<Self>>)>(f: F); in test_impls()
1406 fn with_passing_test_cases<F: Fn(Box<ReadOnly<Self>>)>(f: F) { in test_impls()
1408 f(ReadOnly::<Self>::new_box_zeroed().unwrap()); in test_impls()
1411 let mut t = ReadOnly::new(Self::new_zeroed()); in test_impls()
1412 let ptr: *mut T = ReadOnly::as_mut(&mut t); in test_impls()
1429 fn with_passing_test_cases<F: Fn(Box<ReadOnly<Self>>)>(f: F) { in test_impls()
1431 f(Box::new(ReadOnly::new(None))); in test_impls()
1469 fn with_passing_test_cases<F: Fn(Box<ReadOnly<Self>>)>(_f: F) { in test_impls()
1472 let ro: Box<ReadOnly<_>> = { in test_impls()
1641 fn test_as_bytes<'slf, 't>(&'slf self, t: &'t ReadOnly<T>) -> Option<&'t [u8]>; in test_impls()
1646 fn test_as_bytes<'slf, 't>(&'slf self, t: &'t ReadOnly<T>) -> Option<&'t [u8]> { in test_impls()
1753 fn test_as_bytes(&mut self, _t: &ReadOnly<$ty>) -> Option<&[u8]> { in test_impls()