Lines Matching refs:from
3 //! This API is very low-level. The main adaptations it makes from the raw
591 fn from(ptr: *mut c_void) -> Self {
606 Self::from(null_mut())
633 /// Create a `Self` from a `u64` value.
646 /// Create a `Self` from a pointer value.
650 ptr: io_uring_ptr::from(ptr),
1018 ($to:ident, $from:ident) => {
1021 (size_of::<sys::$from>(), align_of::<sys::$from>())
1041 ($struct:ident, $to:ident, $from:ident) => {
1042 assert_eq!(offset_of!($struct, $to), offset_of!(sys::$struct, $from));
1043 assert_eq!(span_of!($struct, $to), span_of!(sys::$struct, $from));