Lines Matching refs:Box
3 use alloc::{boxed::Box, string::String, sync::Arc, vec::Vec};
277 pub fn try_clone(&self) -> Option<Box<File>> { in try_clone()
278 let mut res: Box<File> = Box::new(Self { in try_clone()
320 pub fds: [Option<Box<File>>; FileDescriptorVec::PROCESS_MAX_FD],
326 pub fn new() -> Box<FileDescriptorVec> { in new()
328 let mut data: [MaybeUninit<Option<Box<File>>>; FileDescriptorVec::PROCESS_MAX_FD] = in new()
336 let data: [Option<Box<File>>; FileDescriptorVec::PROCESS_MAX_FD] = unsafe { in new()
337 core::mem::transmute::<_, [Option<Box<File>>; FileDescriptorVec::PROCESS_MAX_FD]>(data) in new()
341 return Box::new(FileDescriptorVec { fds: data }); in new()
347 pub fn clone(&self) -> Box<FileDescriptorVec> { in clone()
348 let mut res: Box<FileDescriptorVec> = FileDescriptorVec::new(); in clone()