Searched refs:U (Results 1 – 3 of 3) sorted by relevance
42 ### 2.1 从Arc<dyn U>转换为Arc<T>44 …emsp;当我们需要把一个`Arc<dyn U>`转换为`Arc<T>`的具体类型指针时,我们要为`U`这个trait实现`DowncastArc`trait。这个trait定义在`kernel/…46   为`trait U: Any + Send + Sync`实现`DowncastArc`trait,需要这样做:49 impl DowncastArc for dyn U {59 let arc: Arc<dyn U> = ...;
171 pub fn new<U>(addr: *const U, len: usize, from_user: bool) -> Result<Self, SystemError> { in new() argument279 pub fn new<U>(addr: *mut U, len: usize, from_user: bool) -> Result<Self, SystemError> { in new() argument
299 # define UINT32_C(c) c ## U