Lines Matching refs:ty
9 ($segment:expr, $ty:ty) => {
10 const_assert_eq!(mem::size_of::<[usize; 3]>(), mem::size_of::<Vec<$ty>>());
11 const_assert_eq!(mem::align_of::<usize>(), mem::align_of::<Vec<$ty>>());
16 unsafe extern "C" fn __new(this: *mut RustVec<$ty>) {
22 unsafe extern "C" fn __drop(this: *mut RustVec<$ty>) {
28 unsafe extern "C" fn __len(this: *const RustVec<$ty>) -> usize {
34 unsafe extern "C" fn __capacity(this: *const RustVec<$ty>) -> usize {
40 unsafe extern "C" fn __data(this: *const RustVec<$ty>) -> *const $ty {
46 unsafe extern "C" fn __reserve_total(this: *mut RustVec<$ty>, cap: usize) {
52 unsafe extern "C" fn __set_len(this: *mut RustVec<$ty>, len: usize) {
61 ($ty:ident) => {
62 rust_vec_shims!(stringify!($ty), $ty);