Lines Matching refs:as_ptr
92 pub const fn as_ptr(&self) -> *mut T {
283 // SAFETY: `a.as_ptr()` is valid and properly aligned.
284 unsafe { bindings::#call(a.as_ptr().cast()) }
289 // SAFETY: `a.as_ptr()` is valid and properly aligned.
290 unsafe { bindings::#call(a.as_ptr().cast(), v) }
303 // SAFETY: `a.as_ptr()` is valid and properly aligned.
304 unsafe { bindings::#call(a.as_ptr().cast(), v) }
316 // SAFETY: `a.as_ptr()` is valid and properly aligned. `core::ptr::from_mut(old)`
318 unsafe { bindings::#call(a.as_ptr().cast(), core::ptr::from_mut(old), new) }
331 // SAFETY: `a.as_ptr()` is valid and properly aligned.
332 unsafe { bindings::#call(v, a.as_ptr().cast()) }
340 // SAFETY: `a.as_ptr()` guarantees the returned pointer is valid and properly aligned.
341 unsafe { bindings::#call(v, a.as_ptr().cast()) }
345 // SAFETY: `a.as_ptr()` guarantees the returned pointer is valid and properly aligned.
346 unsafe { bindings::#call(v, a.as_ptr().cast()) }