Lines Matching defs:Self
56 pub unsafe fn from_i32_unchecked(id: i32) -> Self {
61 Self(id as u32)
65 pub fn from_i32(id: i32) -> Option<Self> {
70 Some(Self(id as u32))
80 pub unsafe fn from_u32_unchecked(id: u32) -> Self {
87 Self(id)
91 pub fn from_u32(id: u32) -> Option<Self> {
96 Some(Self(id))
113 pub fn current() -> Self {
115 unsafe { Self::from_u32_unchecked(bindings::raw_smp_processor_id()) }
120 fn from(id: CpuId) -> Self {
126 fn from(id: CpuId) -> Self {