Searched refs:v (Results 1 – 8 of 8) sorted by relevance
| /rust/macros/ |
| D | quote.rs | 11 if let Some(v) = self { in to_tokens() 12 v.to_tokens(tokens); in to_tokens() 52 (@proc $v:ident $span:ident) => {}; 53 (@proc $v:ident $span:ident #$id:ident $($tt:tt)*) => { 56 $v.extend(ts); 57 quote_spanned!(@proc $v $span $($tt)*); 59 (@proc $v:ident $span:ident #(#$id:ident)* $($tt:tt)*) => { 63 $v.extend(ts); 65 quote_spanned!(@proc $v $span $($tt)*); 67 (@proc $v:ident $span:ident ( $($inner:tt)* ) $($tt:tt)*) => { [all …]
|
| D | paste.rs | 45 v => panic!("unknown modifier `{v}`"), in concat()
|
| /rust/kernel/alloc/ |
| D | kvec.rs | 314 pub fn push(&mut self, v: T, flags: Flags) -> Result<(), AllocError> { in push() 318 unsafe { self.push_within_capacity_unchecked(v) }; in push() 337 pub fn push_within_capacity(&mut self, v: T) -> Result<(), PushError<T>> { in push_within_capacity() 340 unsafe { self.push_within_capacity_unchecked(v) }; in push_within_capacity() 343 Err(PushError(v)) in push_within_capacity() 352 unsafe fn push_within_capacity_unchecked(&mut self, v: T) { in push_within_capacity_unchecked() 356 unsafe { spare.get_unchecked_mut(0) }.write(v); in push_within_capacity_unchecked() 491 let mut v = Vec::new(); in with_capacity() localVariable 493 v.reserve(capacity, flags)?; in with_capacity() 495 Ok(v) in with_capacity() [all …]
|
| /rust/kernel/ |
| D | rbtree.rs | 231 self.iter().map(|(_, v)| v) in values() 236 self.iter_mut().map(|(_, v)| v) in values_mut() 892 let (k, v) = unsafe { Self::to_key_value_raw(node) }; in to_key_value() 894 (k, unsafe { &*v }) in to_key_value() 903 let (k, v) = unsafe { Self::to_key_value_raw(node) }; in to_key_value_mut() 905 (k, unsafe { &mut *v }) in to_key_value_mut() 921 let v = unsafe { addr_of_mut!((*this).value) }; in to_key_value_raw() localVariable 922 (k, v) in to_key_value_raw() 964 self.iter_raw.next().map(|(k, v)| unsafe { (&*k, &*v) }) in next() 998 self.iter_raw.next().map(|(k, v)| in next() [all …]
|
| D | error.rs | 340 Ok(v) => v, in from_result()
|
| D | list.rs | 860 self.peek_next().map(|v| v.remove()) in remove_next() 865 self.peek_prev().map(|v| v.remove()) in remove_prev()
|
| D | str.rs | 517 Ok(v) => v,
|
| /rust/kernel/net/ |
| D | phy.rs | 172 let v = match mode { in set_duplex() localVariable 179 unsafe { (*phydev).duplex = v }; in set_duplex()
|