Lines Matching defs:OFFSET
429 /// The [`OFFSET`] constant must be the offset of a field in `Self` of type [`Work<T, ID>`]. The
433 /// [`OFFSET`]: HasWork::OFFSET
436 const OFFSET: usize;
440 /// This method exists because the [`OFFSET`] constant cannot be accessed if the type is not
443 /// [`OFFSET`]: HasWork::OFFSET
446 Self::OFFSET
457 unsafe { (ptr as *mut u8).add(Self::OFFSET) as *mut Work<T, ID> }
472 unsafe { (ptr as *mut u8).sub(Self::OFFSET) as *mut Self }
504 const OFFSET: usize = ::core::mem::offset_of!(Self, $field) as usize;