| /linux/rust/kernel/ |
| H A D | debugfs.rs | 171 T argument 74 create_file<'a, T, E: 'a>( &'a self, name: &'a CStr, data: impl PinInit<T, E> + 'a, file_ops: &'static FileOps<T>, ) -> impl PinInit<File<T>, E> + 'a where T: Sync + 'static, create_file() argument 77 create_file<'a, T, E: 'a>( &'a self, name: &'a CStr, data: impl PinInit<T, E> + 'a, file_ops: &'static FileOps<T>, ) -> impl PinInit<File<T>, E> + 'a where T: Sync + 'static, create_file() argument 78 create_file<'a, T, E: 'a>( &'a self, name: &'a CStr, data: impl PinInit<T, E> + 'a, file_ops: &'static FileOps<T>, ) -> impl PinInit<File<T>, E> + 'a where T: Sync + 'static, create_file() argument 79 create_file<'a, T, E: 'a>( &'a self, name: &'a CStr, data: impl PinInit<T, E> + 'a, file_ops: &'static FileOps<T>, ) -> impl PinInit<File<T>, E> + 'a where T: Sync + 'static, create_file() argument 144 read_only_file<'a, T, E: 'a>( &'a self, name: &'a CStr, data: impl PinInit<T, E> + 'a, ) -> impl PinInit<File<T>, E> + 'a where T: Writer + Send + Sync + 'static, read_only_file() argument 147 read_only_file<'a, T, E: 'a>( &'a self, name: &'a CStr, data: impl PinInit<T, E> + 'a, ) -> impl PinInit<File<T>, E> + 'a where T: Writer + Send + Sync + 'static, read_only_file() argument 148 read_only_file<'a, T, E: 'a>( &'a self, name: &'a CStr, data: impl PinInit<T, E> + 'a, ) -> impl PinInit<File<T>, E> + 'a where T: Writer + Send + Sync + 'static, read_only_file() argument 174 read_binary_file<'a, T, E: 'a>( &'a self, name: &'a CStr, data: impl PinInit<T, E> + 'a, ) -> impl PinInit<File<T>, E> + 'a where T: BinaryWriter + Send + Sync + 'static, read_binary_file() argument 175 read_binary_file<'a, T, E: 'a>( &'a self, name: &'a CStr, data: impl PinInit<T, E> + 'a, ) -> impl PinInit<File<T>, E> + 'a where T: BinaryWriter + Send + Sync + 'static, read_binary_file() argument 208 read_callback_file<'a, T, E: 'a, F>( &'a self, name: &'a CStr, data: impl PinInit<T, E> + 'a, _f: &'static F, ) -> impl PinInit<File<T>, E> + 'a where T: Send + Sync + 'static, F: Fn(&T, &mut fmt::Formatter<'_>) -> fmt::Result + Send + Sync, read_callback_file() argument 211 read_callback_file<'a, T, E: 'a, F>( &'a self, name: &'a CStr, data: impl PinInit<T, E> + 'a, _f: &'static F, ) -> impl PinInit<File<T>, E> + 'a where T: Send + Sync + 'static, F: Fn(&T, &mut fmt::Formatter<'_>) -> fmt::Result + Send + Sync, read_callback_file() argument 213 read_callback_file<'a, T, E: 'a, F>( &'a self, name: &'a CStr, data: impl PinInit<T, E> + 'a, _f: &'static F, ) -> impl PinInit<File<T>, E> + 'a where T: Send + Sync + 'static, F: Fn(&T, &mut fmt::Formatter<'_>) -> fmt::Result + Send + Sync, read_callback_file() argument 216 read_callback_file<'a, T, E: 'a, F>( &'a self, name: &'a CStr, data: impl PinInit<T, E> + 'a, _f: &'static F, ) -> impl PinInit<File<T>, E> + 'a where T: Send + Sync + 'static, F: Fn(&T, &mut fmt::Formatter<'_>) -> fmt::Result + Send + Sync, read_callback_file() argument 226 read_write_file<'a, T, E: 'a>( &'a self, name: &'a CStr, data: impl PinInit<T, E> + 'a, ) -> impl PinInit<File<T>, E> + 'a where T: Writer + Reader + Send + Sync + 'static, read_write_file() argument 229 read_write_file<'a, T, E: 'a>( &'a self, name: &'a CStr, data: impl PinInit<T, E> + 'a, ) -> impl PinInit<File<T>, E> + 'a where T: Writer + Reader + Send + Sync + 'static, read_write_file() argument 230 read_write_file<'a, T, E: 'a>( &'a self, name: &'a CStr, data: impl PinInit<T, E> + 'a, ) -> impl PinInit<File<T>, E> + 'a where T: Writer + Reader + Send + Sync + 'static, read_write_file() argument 242 read_write_binary_file<'a, T, E: 'a>( &'a self, name: &'a CStr, data: impl PinInit<T, E> + 'a, ) -> impl PinInit<File<T>, E> + 'a where T: BinaryWriter + BinaryReader + Send + Sync + 'static, read_write_binary_file() argument 245 read_write_binary_file<'a, T, E: 'a>( &'a self, name: &'a CStr, data: impl PinInit<T, E> + 'a, ) -> impl PinInit<File<T>, E> + 'a where T: BinaryWriter + BinaryReader + Send + Sync + 'static, read_write_binary_file() argument 246 read_write_binary_file<'a, T, E: 'a>( &'a self, name: &'a CStr, data: impl PinInit<T, E> + 'a, ) -> impl PinInit<File<T>, E> + 'a where T: BinaryWriter + BinaryReader + Send + Sync + 'static, read_write_binary_file() argument 260 read_write_callback_file<'a, T, E: 'a, F, W>( &'a self, name: &'a CStr, data: impl PinInit<T, E> + 'a, _f: &'static F, _w: &'static W, ) -> impl PinInit<File<T>, E> + 'a where T: Send + Sync + 'static, F: Fn(&T, &mut fmt::Formatter<'_>) -> fmt::Result + Send + Sync, W: Fn(&T, &mut UserSliceReader) -> Result + Send + Sync, read_write_callback_file() argument 263 read_write_callback_file<'a, T, E: 'a, F, W>( &'a self, name: &'a CStr, data: impl PinInit<T, E> + 'a, _f: &'static F, _w: &'static W, ) -> impl PinInit<File<T>, E> + 'a where T: Send + Sync + 'static, F: Fn(&T, &mut fmt::Formatter<'_>) -> fmt::Result + Send + Sync, W: Fn(&T, &mut UserSliceReader) -> Result + Send + Sync, read_write_callback_file() argument 266 read_write_callback_file<'a, T, E: 'a, F, W>( &'a self, name: &'a CStr, data: impl PinInit<T, E> + 'a, _f: &'static F, _w: &'static W, ) -> impl PinInit<File<T>, E> + 'a where T: Send + Sync + 'static, F: Fn(&T, &mut fmt::Formatter<'_>) -> fmt::Result + Send + Sync, W: Fn(&T, &mut UserSliceReader) -> Result + Send + Sync, read_write_callback_file() argument 269 read_write_callback_file<'a, T, E: 'a, F, W>( &'a self, name: &'a CStr, data: impl PinInit<T, E> + 'a, _f: &'static F, _w: &'static W, ) -> impl PinInit<File<T>, E> + 'a where T: Send + Sync + 'static, F: Fn(&T, &mut fmt::Formatter<'_>) -> fmt::Result + Send + Sync, W: Fn(&T, &mut UserSliceReader) -> Result + Send + Sync, read_write_callback_file() argument 270 read_write_callback_file<'a, T, E: 'a, F, W>( &'a self, name: &'a CStr, data: impl PinInit<T, E> + 'a, _f: &'static F, _w: &'static W, ) -> impl PinInit<File<T>, E> + 'a where T: Send + Sync + 'static, F: Fn(&T, &mut fmt::Formatter<'_>) -> fmt::Result + Send + Sync, W: Fn(&T, &mut UserSliceReader) -> Result + Send + Sync, read_write_callback_file() argument 285 write_only_file<'a, T, E: 'a>( &'a self, name: &'a CStr, data: impl PinInit<T, E> + 'a, ) -> impl PinInit<File<T>, E> + 'a where T: Reader + Send + Sync + 'static, write_only_file() argument 288 write_only_file<'a, T, E: 'a>( &'a self, name: &'a CStr, data: impl PinInit<T, E> + 'a, ) -> impl PinInit<File<T>, E> + 'a where T: Reader + Send + Sync + 'static, write_only_file() argument 289 write_only_file<'a, T, E: 'a>( &'a self, name: &'a CStr, data: impl PinInit<T, E> + 'a, ) -> impl PinInit<File<T>, E> + 'a where T: Reader + Send + Sync + 'static, write_only_file() argument 302 write_binary_file<'a, T, E: 'a>( &'a self, name: &'a CStr, data: impl PinInit<T, E> + 'a, ) -> impl PinInit<File<T>, E> + 'a where T: BinaryReader + Send + Sync + 'static, write_binary_file() argument 305 write_binary_file<'a, T, E: 'a>( &'a self, name: &'a CStr, data: impl PinInit<T, E> + 'a, ) -> impl PinInit<File<T>, E> + 'a where T: BinaryReader + Send + Sync + 'static, write_binary_file() argument 306 write_binary_file<'a, T, E: 'a>( &'a self, name: &'a CStr, data: impl PinInit<T, E> + 'a, ) -> impl PinInit<File<T>, E> + 'a where T: BinaryReader + Send + Sync + 'static, write_binary_file() argument 317 write_callback_file<'a, T, E: 'a, W>( &'a self, name: &'a CStr, data: impl PinInit<T, E> + 'a, _w: &'static W, ) -> impl PinInit<File<T>, E> + 'a where T: Send + Sync + 'static, W: Fn(&T, &mut UserSliceReader) -> Result + Send + Sync, write_callback_file() argument 320 write_callback_file<'a, T, E: 'a, W>( &'a self, name: &'a CStr, data: impl PinInit<T, E> + 'a, _w: &'static W, ) -> impl PinInit<File<T>, E> + 'a where T: Send + Sync + 'static, W: Fn(&T, &mut UserSliceReader) -> Result + Send + Sync, write_callback_file() argument 322 write_callback_file<'a, T, E: 'a, W>( &'a self, name: &'a CStr, data: impl PinInit<T, E> + 'a, _w: &'static W, ) -> impl PinInit<File<T>, E> + 'a where T: Send + Sync + 'static, W: Fn(&T, &mut UserSliceReader) -> Result + Send + Sync, write_callback_file() argument 325 write_callback_file<'a, T, E: 'a, W>( &'a self, name: &'a CStr, data: impl PinInit<T, E> + 'a, _w: &'static W, ) -> impl PinInit<File<T>, E> + 'a where T: Send + Sync + 'static, W: Fn(&T, &mut UserSliceReader) -> Result + Send + Sync, write_callback_file() argument 364 scope<'a, T: 'a, E: 'a, F>( &'a self, data: impl PinInit<T, E> + 'a, name: &'a CStr, init: F, ) -> impl PinInit<Scope<T>, E> + 'a where F: for<'data, 'dir> FnOnce(&'data T, &'dir ScopedDir<'data, 'dir>) + 'a, scope() argument 367 scope<'a, T: 'a, E: 'a, F>( &'a self, data: impl PinInit<T, E> + 'a, name: &'a CStr, init: F, ) -> impl PinInit<Scope<T>, E> + 'a where F: for<'data, 'dir> FnOnce(&'data T, &'dir ScopedDir<'data, 'dir>) + 'a, scope() argument 369 scope<'a, T: 'a, E: 'a, F>( &'a self, data: impl PinInit<T, E> + 'a, name: &'a CStr, init: F, ) -> impl PinInit<Scope<T>, E> + 'a where F: for<'data, 'dir> FnOnce(&'data T, &'dir ScopedDir<'data, 'dir>) + 'a, scope() argument 411 new<E: 'b, F>(data: impl PinInit<T, E> + 'b, init: F) -> impl PinInit<Self, E> + 'b where F: for<'a> FnOnce(&'a T) + 'b, new() argument 435 new<E: 'b, F>(data: impl PinInit<T, E> + 'b, init: F) -> impl PinInit<Self, E> + 'b where F: for<'a> FnOnce(&'a T) -> Entry<'static> + 'b, new() argument 463 dir<E: 'a, F>( data: impl PinInit<T, E> + 'a, name: &'a CStr, init: F, ) -> impl PinInit<Self, E> + 'a where F: for<'data, 'dir> FnOnce(&'data T, &'dir ScopedDir<'data, 'dir>) + 'a, dir() argument 468 dir<E: 'a, F>( data: impl PinInit<T, E> + 'a, name: &'a CStr, init: F, ) -> impl PinInit<Self, E> + 'a where F: for<'data, 'dir> FnOnce(&'data T, &'dir ScopedDir<'data, 'dir>) + 'a, dir() argument 480 deref(&self) -> &T deref() argument 487 deref(&self) -> &T deref() argument 517 create_file<T: Sync>(&self, name: &CStr, data: &'data T, vtable: &'static FileOps<T>) create_file() argument 529 read_only_file<T: Writer + Send + Sync + 'static>(&self, name: &CStr, data: &'data T) read_only_file() argument 542 read_binary_file<T: BinaryWriter + Send + Sync + 'static>( &self, name: &CStr, data: &'data T, ) read_binary_file() argument 558 read_callback_file<T, F>(&self, name: &CStr, data: &'data T, _f: &'static F) where T: Send + Sync + 'static, F: Fn(&T, &mut fmt::Formatter<'_>) -> fmt::Result + Send + Sync, read_callback_file() argument 561 read_callback_file<T, F>(&self, name: &CStr, data: &'data T, _f: &'static F) where T: Send + Sync + 'static, F: Fn(&T, &mut fmt::Formatter<'_>) -> fmt::Result + Send + Sync, read_callback_file() argument 578 read_write_file<T: Writer + Reader + Send + Sync + 'static>( &self, name: &CStr, data: &'data T, ) read_write_file() argument 594 read_write_binary_file<T: BinaryWriter + BinaryReader + Send + Sync + 'static>( &self, name: &CStr, data: &'data T, ) read_write_binary_file() argument 610 read_write_callback_file<T, F, W>( &self, name: &CStr, data: &'data T, _f: &'static F, _w: &'static W, ) where T: Send + Sync + 'static, F: Fn(&T, &mut fmt::Formatter<'_>) -> fmt::Result + Send + Sync, W: Fn(&T, &mut UserSliceReader) -> Result + Send + Sync, read_write_callback_file() argument 613 read_write_callback_file<T, F, W>( &self, name: &CStr, data: &'data T, _f: &'static F, _w: &'static W, ) where T: Send + Sync + 'static, F: Fn(&T, &mut fmt::Formatter<'_>) -> fmt::Result + Send + Sync, W: Fn(&T, &mut UserSliceReader) -> Result + Send + Sync, read_write_callback_file() argument 618 read_write_callback_file<T, F, W>( &self, name: &CStr, data: &'data T, _f: &'static F, _w: &'static W, ) where T: Send + Sync + 'static, F: Fn(&T, &mut fmt::Formatter<'_>) -> fmt::Result + Send + Sync, W: Fn(&T, &mut UserSliceReader) -> Result + Send + Sync, read_write_callback_file() argument 619 read_write_callback_file<T, F, W>( &self, name: &CStr, data: &'data T, _f: &'static F, _w: &'static W, ) where T: Send + Sync + 'static, F: Fn(&T, &mut fmt::Formatter<'_>) -> fmt::Result + Send + Sync, W: Fn(&T, &mut UserSliceReader) -> Result + Send + Sync, read_write_callback_file() argument 634 write_only_file<T: Reader + Send + Sync + 'static>(&self, name: &CStr, data: &'data T) write_only_file() argument 648 write_binary_file<T: BinaryReader + Send + Sync + 'static>( &self, name: &CStr, data: &'data T, ) write_binary_file() argument 663 write_only_callback_file<T, W>(&self, name: &CStr, data: &'data T, _w: &'static W) where T: Send + Sync + 'static, W: Fn(&T, &mut UserSliceReader) -> Result + Send + Sync, write_only_callback_file() argument 666 write_only_callback_file<T, W>(&self, name: &CStr, data: &'data T, _w: &'static W) where T: Send + Sync + 'static, W: Fn(&T, &mut UserSliceReader) -> Result + Send + Sync, write_only_callback_file() argument [all...] |
| H A D | list.rs | 460 raw_get_self_ptr(me: *const Self) -> *const Opaque<*const T> raw_get_self_ptr() argument 491 insert_inner( &mut self, item: ListArc<T, ID>, next: *mut ListLinksFields, ) -> *mut ListLinksFields insert_inner() argument 534 push_back(&mut self, item: ListArc<T, ID>) push_back() argument 542 push_front(&mut self, item: ListArc<T, ID>) push_front() argument 553 pop_back(&mut self) -> Option<ListArc<T, ID>> pop_back() argument 565 pop_front(&mut self) -> Option<ListArc<T, ID>> pop_front() argument 585 remove(&mut self, item: &T) -> Option<ListArc<T, ID>> remove() argument 626 remove_internal(&mut self, item: *mut ListLinksFields) -> ListArc<T, ID> remove_internal() argument 645 remove_internal_inner( &mut self, item: *mut ListLinksFields, next: *mut ListLinksFields, prev: *mut ListLinksFields, ) -> ListArc<T, ID> remove_internal_inner() argument 693 push_all_back(&mut self, other: &mut List<T, ID>) push_all_back() argument 722 cursor_front(&mut self) -> Cursor<'_, T, ID> cursor_front() argument 731 cursor_back(&mut self) -> Cursor<'_, T, ID> cursor_back() argument 740 iter(&self) -> Iter<'_, T, ID> iter() argument 782 next(&mut self) -> Option<ArcBorrow<'a, T>> next() argument 979 peek_next(&mut self) -> Option<CursorPeek<'_, 'a, T, true, ID>> peek_next() argument 994 peek_prev(&mut self) -> Option<CursorPeek<'_, 'a, T, false, ID>> peek_prev() argument 1047 insert_inner(&mut self, item: ListArc<T, ID>) -> *mut ListLinksFields insert_inner() argument 1065 insert(mut self, item: ListArc<T, ID>) insert() argument 1076 insert_next(&mut self, item: ListArc<T, ID>) insert_next() argument 1083 insert_prev(&mut self, item: ListArc<T, ID>) insert_prev() argument 1088 remove_next(&mut self) -> Option<ListArc<T, ID>> remove_next() argument 1093 remove_prev(&mut self) -> Option<ListArc<T, ID>> remove_prev() argument 1113 remove(self) -> ListArc<T, ID> remove() argument 1126 arc(&self) -> ArcBorrow<'_, T> arc() argument 1153 deref(&self) -> &T deref() argument 1173 into_iter(self) -> Iter<'a, T, ID> into_iter() argument 1186 next(&mut self) -> Option<ListArc<T, ID>> next() argument 1194 next_back(&mut self) -> Option<ListArc<T, ID>> next_back() argument 1203 into_iter(self) -> IntoIter<T, ID> into_iter() argument [all...] |
| H A D | io.rs | 249 fn as_ptr<'a, T: ?Sized + KnownSize>(view: Self::View<'a, T>) -> *mut T; in as_ptr() argument 259 view: Self::View<'a, T>, in project_view() argument 274 fn io_read<'a>(view: Self::View<'a, T>) -> T; in io_read() argument 277 fn io_write<'a>(view: Self::View<'a, T>, value: T); in io_write() argument 300 fn copy_read<T: FromBytes>(view: Self::View<'_, T>) -> T { in copy_read() argument 324 fn copy_write<T: IntoBytes>(view: Self::View<'_, T>, value: T) { in copy_write() argument 844 fn try_read<T, L>(self, location: L) -> Result<T> in try_read() argument 877 fn try_write<T, L>(self, location: L, value: T) -> Result in try_write() 879 L: IoLoc<Self::Target, T>, in try_write() argument 921 fn try_write_reg<T, L, V>(self, value: V) -> Result in try_write_reg() [all …]
|
| H A D | slice.rs | |
| H A D | init.rs | 146 fn try_pin_init<E>(init: impl PinInit<T, E>, flags: Flags) -> Result<Self::PinnedSelf, E> in try_pin_init() argument 154 pin_init<E>(init: impl PinInit<T, E>, flags: Flags) -> error::Result<Self::PinnedSelf> where Error: From<E>, pin_init() argument 166 try_init<E>(init: impl Init<T, E>, flags: Flags) -> Result<Self, E> where E: From<AllocError> try_init() argument 171 init<E>(init: impl Init<T, E>, flags: Flags) -> error::Result<Self> where Error: From<E>, init() argument [all...] |
| H A D | types.rs | 224 new_with_data(data: T, cleanup_func: F) -> Self new_with_data() argument 230 dismiss(mut self) -> T dismiss() argument 247 deref(&self) -> &T deref() argument 254 deref_mut(&mut self) -> &mut T deref_mut() argument 394 get(&self) -> *mut T get() argument 402 cast_into(this: *const Self) -> *mut T cast_into() argument 414 pin_init<E>(slot: impl PinInit<T, E>) -> impl PinInit<Self, E> pin_init() argument [all...] |
| H A D | maple_tree.rs | 50 fn deref(&self) -> &MapleTree<T> { in deref() 121 pub fn insert(&self, index: usize, value: T, gfp: Flags) -> Result<(), InsertError<T>> { in insert() 169 pub fn insert_range<R>(&self, range: R, value: T, gfp: Flags) -> Result<(), InsertError<T>> in insert_range() 227 pub fn erase(&self, index: usize) -> Option<T> { in erase() 238 pub fn lock(&self) -> MapleGuard<'_, T> { in lock() argument 323 pub fn ma_state(&mut self, first: usize, end: usize) -> MaState<'_, T> { in ma_state() argument 443 value: T, in alloc_range() 511 unsafe fn new_raw(mt: &'tree MapleTree<T>, first: usize, end: usize) -> Self { in new_raw()
|
| /linux/rust/pin-init/src/ |
| H A D | lib.rs | 953 pin_chain<F>(self, f: F) -> ChainPinInit<Self, F, T, E> where F: FnOnce(Pin<&mut T>) -> Result<(), E>, pin_chain() argument 1061 chain<F>(self, f: F) -> ChainInit<Self, F, T, E> where F: FnOnce(&mut T) -> Result<(), E>, chain() argument 1117 pin_init_from_closure<T: ?Sized, E>( f: impl FnOnce(*mut T) -> Result<(), E>, ) -> impl PinInit<T, E> pin_init_from_closure() argument 1136 init_from_closure<T: ?Sized, E>( f: impl FnOnce(*mut T) -> Result<(), E>, ) -> impl Init<T, E> init_from_closure() argument 1146 cast_pin_init<T, U, E>(init: impl PinInit<T, E>) -> impl PinInit<U, E> cast_pin_init() argument 1162 cast_init<T, U, E>(init: impl Init<T, E>) -> impl Init<U, E> cast_init() argument 1176 uninit<T, E>() -> impl Init<MaybeUninit<T>, E> uninit() argument 1191 init_array_from_fn<I, const N: usize, T, E>( mut make_init: impl FnMut(usize) -> I, ) -> impl Init<[T; N], E> where I: Init<T, E>, init_array_from_fn() argument 1195 init_array_from_fn<I, const N: usize, T, E>( mut make_init: impl FnMut(usize) -> I, ) -> impl Init<[T; N], E> where I: Init<T, E>, global() argument 1234 pin_init_array_from_fn<I, const N: usize, T, E>( mut make_init: impl FnMut(usize) -> I, ) -> impl PinInit<[T; N], E> where I: PinInit<T, E>, pin_init_array_from_fn() argument 1238 pin_init_array_from_fn<I, const N: usize, T, E>( mut make_init: impl FnMut(usize) -> I, ) -> impl PinInit<[T; N], E> where I: PinInit<T, E>, global() argument 1288 pin_init_scope<T, E, F, I>(make_init: F) -> impl PinInit<T, E> where F: FnOnce() -> Result<I, E>, I: PinInit<T, E>, pin_init_scope() argument 1291 pin_init_scope<T, E, F, I>(make_init: F) -> impl PinInit<T, E> where F: FnOnce() -> Result<I, E>, I: PinInit<T, E>, pin_init_scope() argument 1331 init_scope<T, E, F, I>(make_init: F) -> impl Init<T, E> where F: FnOnce() -> Result<I, E>, I: Init<T, E>, init_scope() argument 1334 init_scope<T, E, F, I>(make_init: F) -> impl Init<T, E> where F: FnOnce() -> Result<I, E>, I: Init<T, E>, init_scope() argument 1350 unsafe impl<T> Init<T> for T { global() implementation 1360 unsafe impl<T> PinInit<T> for T { global() implementation 1398 write_init<E>(self, init: impl Init<T, E>) -> Result<Self::Initialized, E> write_init() argument 1403 write_pin_init<E>(self, init: impl PinInit<T, E>) -> Result<Pin<Self::Initialized>, E> write_pin_init() argument 1407 type Initialized = &'static mut T; global() variable 1409 write_init<E>(self, init: impl Init<T, E>) -> Result<Self::Initialized, E> write_init() argument 1419 write_pin_init<E>(self, init: impl PinInit<T, E>) -> Result<Pin<Self::Initialized>, E> write_pin_init() argument 1534 unsafe impl<T> ZeroableOption for &T {} global() implementation 1537 unsafe impl<T> ZeroableOption for &mut T {} global() implementation 1546 init_zeroed<T: Zeroable>() -> impl Init<T> init_zeroed() argument 1577 zeroed<T: Zeroable>() -> T zeroed() argument 1691 pin_init<E>(value_init: impl PinInit<T, E>) -> impl PinInit<Self, E> pin_init() argument 1695 pin_init<E>(value_init: impl PinInit<T, E>) -> impl PinInit<Self, E> pin_init() argument 1702 pin_init<E>(value_init: impl PinInit<T, E>) -> impl PinInit<Self, E> pin_init() argument 1710 pin_init<E>(init: impl PinInit<T, E>) -> impl PinInit<Self, E> pin_init() argument [all...] |
| H A D | alloc.rs | 30 fn try_pin_init<E>(init: impl PinInit<T, E>) -> Result<Pin<Self>, E> in try_pin_init() argument 50 /// Use the given initializer to in-place initialize a `T` argument 82 try_pin_init<E>(init: impl PinInit<T, E>) -> Result<Pin<Self>, E> where E: From<AllocError>, try_pin_init() argument 90 try_init<E>(init: impl Init<T, E>) -> Result<Self, E> where E: From<AllocError>, try_init() argument 100 try_pin_init<E>(init: impl PinInit<T, E>) -> Result<Pin<Self>, E> where E: From<AllocError>, try_pin_init() argument 118 try_init<E>(init: impl Init<T, E>) -> Result<Self, E> where E: From<AllocError>, try_init() argument 139 write_init<E>(mut self, init: impl Init<T, E>) -> Result<Self::Initialized, E> write_init() argument 148 write_pin_init<E>(mut self, init: impl PinInit<T, E>) -> Result<Pin<Self::Initialized>, E> write_pin_init() argument [all...] |
| /linux/rust/kernel/alloc/ |
| H A D | kbox.rs | 203 into_raw(b: Self) -> *mut T into_raw() argument 211 leak<'a>(b: Self) -> &'a mut T leak() argument 230 assume_init(self) -> Box<T, A> assume_init() argument 240 write(mut self, value: T) -> Box<T, A> write() argument 256 new(x: T, flags: Flags) -> Result<Self, AllocError> new() argument 275 new_uninit(flags: Flags) -> Result<Box<MaybeUninit<T>, A>, AllocError> new_uninit() argument 287 pin(x: T, flags: Flags) -> Result<Pin<Box<T, A>>, AllocError> where A: 'static, pin() argument 340 pin_slice<Func, Item, E>( mut init: Func, len: usize, flags: Flags, ) -> Result<Pin<Box<[T], A>>, E> where Func: FnMut(usize) -> Item, Item: PinInit<T, E>, E: From<AllocError>, pin_slice() argument 343 pin_slice<Func, Item, E>( mut init: Func, len: usize, flags: Flags, ) -> Result<Pin<Box<[T], A>>, E> where Func: FnMut(usize) -> Item, Item: PinInit<T, E>, E: From<AllocError>, pin_slice() argument 378 forget_contents(this: Self) -> Box<MaybeUninit<T>, A> forget_contents() argument 398 drop_contents(this: Self) -> Box<MaybeUninit<T>, A> drop_contents() argument 409 into_inner(b: Self) -> T into_inner() argument 426 from(b: Box<T, A>) -> Self from() argument 439 write_init<E>(mut self, init: impl Init<T, E>) -> Result<Self::Initialized, E> write_init() argument 448 write_pin_init<E>(mut self, init: impl PinInit<T, E>) -> Result<Pin<Self::Initialized>, E> write_pin_init() argument 465 try_pin_init<E>(init: impl PinInit<T, E>, flags: Flags) -> Result<Pin<Self>, E> where E: From<AllocError>, try_pin_init() argument 473 try_init<E>(init: impl Init<T, E>, flags: Flags) -> Result<Self, E> where E: From<AllocError>, try_init() argument 506 borrow<'a>(ptr: *mut c_void) -> &'a T borrow() argument 512 borrow_mut<'a>(ptr: *mut c_void) -> &'a mut T borrow_mut() argument 541 borrow<'a>(ptr: *mut c_void) -> Pin<&'a T> borrow() argument 552 borrow_mut<'a>(ptr: *mut c_void) -> Pin<&'a mut T> borrow_mut() argument 572 deref(&self) -> &T deref() argument 584 deref_mut(&mut self) -> &mut T deref_mut() argument 614 borrow(&self) -> &T borrow() argument 642 borrow_mut(&mut self) -> &mut T borrow_mut() argument [all...] |
| H A D | kvec.rs | 221 dec_len(&mut self, count: usize) -> &mut [T] dec_len() argument 244 as_slice(&self) -> &[T] as_slice() argument 250 as_mut_slice(&mut self) -> &mut [T] as_mut_slice() argument 257 as_mut_ptr(&mut self) -> *mut T as_mut_ptr() argument 264 as_ptr(&self) -> *const T as_ptr() argument 303 spare_capacity_mut(&mut self) -> &mut [MaybeUninit<T>] spare_capacity_mut() argument 328 push(&mut self, v: T, flags: Flags) -> Result<(), AllocError> push() argument 351 push_within_capacity(&mut self, v: T) -> Result<(), PushError<T>> push_within_capacity() argument 366 push_within_capacity_unchecked(&mut self, v: T) push_within_capacity_unchecked() argument 401 insert_within_capacity( &mut self, index: usize, element: T, ) -> Result<(), InsertError<T>> insert_within_capacity() argument 402 insert_within_capacity( &mut self, index: usize, element: T, ) -> Result<(), InsertError<T>> insert_within_capacity() argument 442 pop(&mut self) -> Option<T> pop() argument 468 remove(&mut self, i: usize) -> Result<T, RemoveError> remove() argument 553 from_raw_parts(ptr: *mut T, length: usize, capacity: usize) -> Self from_raw_parts() argument 579 into_raw_parts(self) -> (*mut T, usize, usize) into_raw_parts() argument 707 drain_all(&mut self) -> DrainAll<'_, T> drain_all() argument 852 extend_with(&mut self, n: usize, value: T, flags: Flags) -> Result<(), AllocError> extend_with() argument 891 extend_from_slice(&mut self, other: &[T], flags: Flags) -> Result<(), AllocError> extend_from_slice() argument 907 from_elem(value: T, n: usize, flags: Flags) -> Result<Self, AllocError> from_elem() argument 932 resize(&mut self, new_len: usize, value: T, flags: Flags) -> Result<(), AllocError> resize() argument 967 from(b: Box<[T; N], A>) -> Vec<T, A> from() argument 1001 deref(&self) -> &[T] deref() argument 1013 deref_mut(&mut self) -> &mut [T] deref_mut() argument 1041 borrow(&self) -> &[T] borrow() argument 1067 borrow_mut(&mut self) -> &mut [T] borrow_mut() argument 1208 into_raw_parts(self) -> (*mut T, NonNull<T>, usize, usize) into_raw_parts() argument 1252 collect(self, flags: Flags) -> Vec<T, A> collect() argument 1325 next(&mut self) -> Option<T> next() argument 1444 next(&mut self) -> Option<T> next() argument [all...] |
| /linux/rust/zerocopy/src/ |
| H A D | deprecated.rs | 26 pub fn new(bytes: B) -> Option<Ref<B, T>> { in new() argument 40 pub fn new_from_prefix(bytes: B) -> Option<(Ref<B, T>, B)> { in new_from_prefix() argument 54 pub fn new_from_suffix(bytes: B) -> Option<(B, Ref<B, T>)> { in new_from_suffix() argument 71 pub fn new_unaligned(bytes: B) -> Option<Ref<B, T>> { in new_unaligned() argument 88 pub fn new_unaligned_from_prefix(bytes: B) -> Option<(Ref<B, T>, B)> { in new_unaligned_from_prefix() argument 105 pub fn new_unaligned_from_suffix(bytes: B) -> Option<(B, Ref<B, T>)> { in new_unaligned_from_suffix() argument 118 pub fn new_slice(bytes: B) -> Option<Ref<B, [T]>> { in new_slice() 134 pub fn new_slice_unaligned(bytes: B) -> Option<Ref<B, [T]>> { in new_slice_unaligned() 147 pub fn into_slice(self) -> &'a [T] { in into_slice() 160 pub fn into_mut_slice(self) -> &'a mut [T] { in into_mut_slice() [all …]
|
| H A D | split_at.rs | 253 unsafe impl<T> SplitAt for [T] { implementation 297 unsafe fn new(source: T, l_len: usize) -> Self { in new() 307 fn into_ptr(self) -> Split<Ptr<'a, T, (Shared, Aligned, Valid)>> { in into_ptr() argument 369 pub fn via_immutable(self) -> (&'a T, &'a [T::Elem]) in via_immutable() 418 pub fn via_into_bytes(self) -> (&'a T, &'a [T::Elem]) in via_into_bytes() 467 pub fn via_unaligned(self) -> (&'a T, &'a [T::Elem]) in via_unaligned() 554 pub fn via_runtime_check(self) -> Result<(&'a T, &'a [T::Elem]), Self> { in via_runtime_check() 591 pub unsafe fn via_unchecked(self) -> (&'a T, &'a [T::Elem]) { in via_unchecked() 605 fn into_ptr(self) -> Split<Ptr<'a, T, (Exclusive, Aligned, Valid)>> { in into_ptr() argument 660 pub fn via_into_bytes(self) -> (&'a mut T, &'a mut [T::Elem]) in via_into_bytes() [all …]
|
| H A D | ref.rs | 82 pub(crate) unsafe fn new_unchecked(bytes: B) -> Ref<B, T> { in new_unchecked() argument 183 fn clone(&self) -> Ref<B, T> { in clone() argument 210 pub(crate) fn sized_from(bytes: B) -> Result<Ref<B, T>, CastError<B, T>> { in sized_from() argument 228 pub(crate) fn sized_from_prefix(bytes: B) -> Result<(Ref<B, T>, B), CastError<B, T>> { in sized_from_prefix() argument 249 pub(crate) fn sized_from_suffix(bytes: B) -> Result<(B, Ref<B, T>), CastError<B, T>> { in sized_from_suffix() argument 311 pub fn from_bytes(source: B) -> Result<Ref<B, T>, CastError<B, T>> { in from_bytes() argument 365 pub fn from_prefix(source: B) -> Result<(Ref<B, T>, B), CastError<B, T>> { in from_prefix() argument 430 pub fn from_suffix(source: B) -> Result<(B, Ref<B, T>), CastError<B, T>> { in from_suffix() argument 491 pub fn from_bytes_with_elems(source: B, count: usize) -> Result<Ref<B, T>, CastError<B, T>> { in from_bytes_with_elems() argument 545 ) -> Result<(Ref<B, T>, B), CastError<B, T>> { in from_prefix_with_elems() argument [all …]
|
| H A D | wrappers.rs | 166 fn clone(&self) -> Unalign<T> { in clone() 174 pub const fn new(val: T) -> Unalign<T> { in new() 180 pub const fn into_inner(self) -> T { in into_inner() 202 pub fn try_deref(&self) -> Result<&T, AlignmentError<&Self, T>> { in try_deref() argument 222 pub fn try_deref_mut(&mut self) -> Result<&mut T, AlignmentError<&mut Self, T>> { in try_deref_mut() argument 239 pub const unsafe fn deref_unchecked(&self) -> &T { in deref_unchecked() 262 pub unsafe fn deref_mut_unchecked(&mut self) -> &mut T { in deref_mut_unchecked() 292 pub const fn get_ptr(&self) -> *const T { in get_ptr() 312 pub fn get_mut_ptr(&mut self) -> *mut T { in get_mut_ptr() 319 pub fn set(&mut self, t: T) { in set() [all …]
|
| /linux/rust/kernel/sync/ |
| H A D | atomic.rs | 140 from_repr<T: AtomicType>(r: T::Repr) -> T from_repr() argument 228 as_ptr(&self) -> *mut T as_ptr() argument 238 get_mut(&mut self) -> &mut T get_mut() argument 269 load<Ordering: ordering::AcquireOrRelaxed>(&self, _: Ordering) -> T load() argument 299 store<Ordering: ordering::ReleaseOrRelaxed>(&self, v: T, _: Ordering) store() argument 340 xchg<Ordering: ordering::Ordering>(&self, v: T, _: Ordering) -> T xchg() argument 413 cmpxchg<Ordering: ordering::Ordering>( &self, mut old: T, new: T, o: Ordering, ) -> Result<T, T> cmpxchg() argument 414 cmpxchg<Ordering: ordering::Ordering>( &self, mut old: T, new: T, o: Ordering, ) -> Result<T, T> cmpxchg() argument 416 cmpxchg<Ordering: ordering::Ordering>( &self, mut old: T, new: T, o: Ordering, ) -> Result<T, T> cmpxchg() argument 458 try_cmpxchg<Ordering: ordering::Ordering>(&self, old: &mut T, new: T, _: Ordering) -> bool try_cmpxchg() argument [all...] |
| /linux/rust/kernel/list/ |
| H A D | arc.rs | 173 new(contents: T, flags: Flags) -> Result<Self, AllocError> new() argument 183 pin_init<E>(init: impl PinInit<T, E>, flags: Flags) -> Result<Self, E> where E: From<AllocError>, pin_init() argument 194 init<E>(init: impl Init<T, E>, flags: Flags) -> Result<Self, E> where E: From<AllocError>, init() argument 237 pair_from_unique<const ID2: u64>(unique: UniqueArc<T>) -> (Self, ListArc<T, ID2>) where T: ListArcSafe<ID2>, pair_from_unique() argument 249 pair_from_pin_unique<const ID2: u64>( mut unique: Pin<UniqueArc<T>>, ) -> (Self, ListArc<T, ID2>) where T: ListArcSafe<ID2>, pair_from_pin_unique() argument 250 pair_from_pin_unique<const ID2: u64>( mut unique: Pin<UniqueArc<T>>, ) -> (Self, ListArc<T, ID2>) where T: ListArcSafe<ID2>, pair_from_pin_unique() argument 337 transmute_to_arc(self) -> Arc<T> transmute_to_arc() argument 349 into_raw(self) -> *const T into_raw() argument 371 into_arc(self) -> Arc<T> into_arc() argument 380 clone_arc(&self) -> Arc<T> clone_arc() argument 391 as_arc(&self) -> &Arc<T> as_arc() argument 400 as_arc_borrow(&self) -> ArcBorrow<'_, T> as_arc_borrow() argument 440 as_ref(&self) -> &Arc<T> as_ref() argument [all...] |
| /linux/rust/zerocopy/src/pointer/ |
| H A D | ptr.rs | 92 pub(crate) unsafe fn from_inner(ptr: PtrInner<'a, T>) -> Ptr<'a, T, I> { in from_inner() argument 105 pub fn as_inner(&self) -> PtrInner<'a, T> { in as_inner() argument 238 pub fn as_ref(self) -> &'a T { in as_ref() 294 pub fn reborrow<'b>(&'b mut self) -> Ptr<'b, T, I> in reborrow() argument 340 pub fn reborrow_shared<'b>(&'b mut self) -> Ptr<'b, T, (Shared, I::Alignment, I::Validity)> in reborrow_shared() argument 388 pub fn as_mut(self) -> &'a mut T { in as_mut() 439 U: TransmuteFromPtr<T, I::Aliasing, I::Validity, V, <U as SizeEq<T>>::CastFrom, R> in transmute() 451 U: TransmuteFromPtr<T, I::Aliasing, I::Validity, V, C, R> + ?Sized, in transmute_with() 452 C: CastExact<T, U>, in transmute_with() 472 pub fn recall_validity<V, R>(self) -> Ptr<'a, T, (I::Aliasing, I::Alignment, V)> in recall_validity() argument [all …]
|
| /linux/rust/kernel/num/ |
| H A D | bounded.rs | 39 fn fits_within<T: Integer>(value: T, num_bits: u32) -> bool { in fits_within() argument 390 get(self) -> T get() argument 408 extend<const M: u32>(self) -> Bounded<T, M> extend() argument 439 try_shrink<const M: u32>(self) -> Option<Bounded<T, M>> try_shrink() argument 515 try_into_bounded(self) -> Option<Bounded<T, N>> try_into_bounded() argument 524 try_into_bounded(self) -> Option<Bounded<T, N>> try_into_bounded() argument 596 add(self, rhs: Bounded<T, M>) -> Self::Output add() argument 608 bitand(self, rhs: Bounded<T, M>) -> Self::Output bitand() argument 620 bitor(self, rhs: Bounded<T, M>) -> Self::Output bitor() argument 632 bitxor(self, rhs: Bounded<T, M>) -> Self::Output bitxor() argument 644 div(self, rhs: Bounded<T, M>) -> Self::Output div() argument 656 mul(self, rhs: Bounded<T, M>) -> Self::Output mul() argument 668 rem(self, rhs: Bounded<T, M>) -> Self::Output rem() argument 680 sub(self, rhs: Bounded<T, M>) -> Self::Output sub() argument 906 impl<T> AtLeastXBits<32> for T where T: AtLeastXBits<64> {} global() implementation 916 impl<T> AtLeastXBits<16> for T where T: AtLeastXBits<32> {} global() implementation 924 impl<T> AtLeastXBits<8> for T where T: AtLeastXBits<16> {} global() implementation 980 impl<T> FitsInXBits<16> for T where T: FitsInXBits<8> {} global() implementation 985 impl<T> FitsInXBits<32> for T where T: FitsInXBits<16> {} global() implementation 993 impl<T> FitsInXBits<64> for T where T: FitsInXBits<32> {} global() implementation 1047 from(value: Bounded<T, 1>) -> Self from() argument [all...] |
| /linux/rust/syn/ |
| H A D | punctuated.rs | 78 pub fn first(&self) -> Option<&T> { in first() 83 pub fn first_mut(&mut self) -> Option<&mut T> { in first_mut() 88 pub fn last(&self) -> Option<&T> { in last() 93 pub fn last_mut(&mut self) -> Option<&mut T> { in last_mut() 98 pub fn get(&self, index: usize) -> Option<&T> { in get() 109 pub fn get_mut(&mut self, index: usize) -> Option<&mut T> { in get_mut() 121 pub fn iter(&self) -> Iter<T> { in iter() 132 pub fn iter_mut(&mut self) -> IterMut<T> { in iter_mut() 143 pub fn pairs(&self) -> Pairs<T, P> { in pairs() 152 pub fn pairs_mut(&mut self) -> PairsMut<T, P> { in pairs_mut() [all …]
|
| /linux/rust/proc-macro2/ |
| H A D | rcvec.rs | 35 pub(crate) fn iter(&self) -> slice::Iter<T> { in iter() 48 pub(crate) fn get_mut(&mut self) -> Option<RcVecMut<T>> { in get_mut() 77 pub(crate) fn push(&mut self, element: T) { in push() 85 pub(crate) fn as_mut(&mut self) -> RcVecMut<T> { in as_mut() 91 pub(crate) fn build(self) -> RcVec<T> { in build() 99 pub(crate) fn push(&mut self, element: T) { in push() 107 pub(crate) fn as_mut(&mut self) -> RcVecMut<T> { in as_mut() 111 pub(crate) fn take(self) -> RcVecBuilder<T> { in take()
|
| /linux/rust/kernel/ptr/ |
| H A D | projection.rs | 78 get(self, slice: *mut [T]) -> Option<*mut T> get() argument 93 get(self, slice: *mut [T]) -> Option<*mut [T]> get() argument 110 get(self, slice: *mut [T]) -> Option<*mut [T]> get() argument 120 get(self, slice: *mut [T]) -> Option<*mut [T]> get() argument 130 get(self, slice: *mut [T]) -> Option<*mut [T]> get() argument 166 unsafe impl<T> ProjectField<false> for T { global() implementation 184 unsafe impl<T: Deref> ProjectField<true> for T { global() implementation [all...] |
| /linux/drivers/comedi/drivers/tests/ |
| H A D | ni_routes_test.c | 310 const struct ni_route_tables *T = &private.routing_tables; in test_ni_route_to_register() local 360 const struct ni_route_tables *T = &private.routing_tables; in test_ni_lookup_route_register() local 399 const struct ni_route_tables *T = &private.routing_tables; in test_route_is_valid() local 454 const struct ni_route_tables *T = &private.routing_tables; in test_ni_count_valid_routes() local 462 const struct ni_route_tables *T = &private.routing_tables; in test_ni_get_valid_routes() local 479 const struct ni_route_tables *T = &private.routing_tables; in test_ni_find_route_source() local 496 const struct ni_route_tables *T = &private.routing_tables; in test_route_register_is_valid() local 511 const struct ni_route_tables *T = &private.routing_tables; in test_ni_check_trigger_arg() local 544 const struct ni_route_tables *T = &private.routing_tables; in test_ni_get_reg_value() local
|
| /linux/rust/kernel/debugfs/ |
| H A D | file_ops.rs | 122 impl<T: Writer + Sync> ReadFile<T> for T { global() implementation 140 read<T: Reader + Sync>(data: &T, buf: *const c_char, count: usize) -> isize read() argument 165 let data = unsafe { &*(seq.private as *const T) }; write() constant 174 impl<T: Writer + Reader + Sync> ReadWriteFile<T> for T { global() implementation 224 let data = unsafe { &*((*file).private_data as *const T) }; write_only_write() constant 232 impl<T: Reader + Sync> WriteFile<T> for T { global() implementation 285 impl<T: BinaryWriter + Sync> BinaryReadFile<T> for T { global() implementation 340 impl<T: BinaryReader + Sync> BinaryWriteFile<T> for T { global() implementation 365 impl<T: BinaryWriter + BinaryReader + Sync> BinaryReadWriteFile<T> for T { global() implementation [all...] |
| /linux/rust/zerocopy/src/util/ |
| H A D | mod.rs | 78 impl<T: ?Sized> AsAddress for &T { implementation 81 let ptr: *const T = self; in addr() constant 86 impl<T: ?Sized> AsAddress for &mut T { implementation 89 let ptr: *const T = self; in addr() constant 101 impl<T: ?Sized> AsAddress for *const T { implementation 117 impl<T: ?Sized> AsAddress for *mut T { implementation 120 let ptr: *const T = self; in addr() constant 389 ) -> Result<alloc::boxed::Box<T>, AllocError> in new_box() 507 pub(crate) fn new_in_bounds(t: &T, meta: usize) -> Option<Self> in new_in_bounds() 596 ) -> Result<(MetadataOf<T>, MetadataOf<[u8]>), MetadataCastError> { in validate_cast_and_convert_metadata() [all …]
|