Lines Matching refs:this
19 unsafe extern "C" fn __new(this: *mut RustVec<$ty>) {
20 unsafe { ptr::write(this, RustVec::new()) }
25 unsafe extern "C" fn __drop(this: *mut RustVec<$ty>) {
26 unsafe { ptr::drop_in_place(this) }
31 unsafe extern "C" fn __len(this: *const RustVec<$ty>) -> usize {
32 unsafe { &*this }.len()
37 unsafe extern "C" fn __capacity(this: *const RustVec<$ty>) -> usize {
38 unsafe { &*this }.capacity()
43 unsafe extern "C" fn __data(this: *const RustVec<$ty>) -> *const $ty {
44 unsafe { &*this }.as_ptr()
49 unsafe extern "C" fn __reserve_total(this: *mut RustVec<$ty>, new_cap: usize) {
50 unsafe { &mut *this }.reserve_total(new_cap);
55 unsafe extern "C" fn __set_len(this: *mut RustVec<$ty>, len: usize) {
56 unsafe { (*this).set_len(len) }
61 unsafe extern "C" fn __truncate(this: *mut RustVec<$ty>, len: usize) {
62 unsafe { (*this).truncate(len) }