Lines Matching defs:as_ptr
79 pub const fn as_ptr(&self) -> *mut T {
270 // SAFETY: `a.as_ptr()` is valid and properly aligned.
271 unsafe { bindings::#call(a.as_ptr().cast()) }
276 // SAFETY: `a.as_ptr()` is valid and properly aligned.
277 unsafe { bindings::#call(a.as_ptr().cast(), v) }
290 // SAFETY: `a.as_ptr()` is valid and properly aligned.
291 unsafe { bindings::#call(a.as_ptr().cast(), v) }
303 // SAFETY: `a.as_ptr()` is valid and properly aligned. `core::ptr::from_mut(old)`
305 unsafe { bindings::#call(a.as_ptr().cast(), core::ptr::from_mut(old), new) }
318 // SAFETY: `a.as_ptr()` is valid and properly aligned.
319 unsafe { bindings::#call(v, a.as_ptr().cast()) }
327 // SAFETY: `a.as_ptr()` is valid and properly aligned.
328 unsafe { bindings::#call(v, a.as_ptr().cast()) }