| /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 | 476 pub unsafe fn raw_get_self_ptr(me: *const Self) -> *const Opaque<*const T> { in raw_get_self_ptr() 507 item: ListArc<T, ID>, in insert_inner() 550 pub fn push_back(&mut self, item: ListArc<T, ID>) { in push_back() 558 pub fn push_front(&mut self, item: ListArc<T, ID>) { in push_front() 569 pub fn pop_back(&mut self) -> Option<ListArc<T, ID>> { in pop_back() 581 pub fn pop_front(&mut self) -> Option<ListArc<T, ID>> { in pop_front() 601 pub unsafe fn remove(&mut self, item: &T) -> Option<ListArc<T, ID>> { in remove() 642 unsafe fn remove_internal(&mut self, item: *mut ListLinksFields) -> ListArc<T, ID> { in remove_internal() 661 ) -> ListArc<T, ID> { in remove_internal_inner() 709 pub fn push_all_back(&mut self, other: &mut List<T, ID>) { in push_all_back() [all …]
|
| H A D | io.rs | 249 as_ptr<'a, T: ?Sized + KnownSize>(view: Self::View<'a, T>) -> *mut T as_ptr() argument 259 project_view<'a, T: ?Sized + KnownSize, U: ?Sized + KnownSize>( view: Self::View<'a, T>, ptr: *mut U, ) -> Self::View<'a, U> project_view() argument 274 io_read<'a>(view: Self::View<'a, T>) -> T io_read() argument 277 io_write<'a>(view: Self::View<'a, T>, value: T) io_write() argument 300 copy_read<T: FromBytes>(view: Self::View<'_, T>) -> T copy_read() argument 324 copy_write<T: IntoBytes>(view: Self::View<'_, T>, value: T) copy_write() argument 844 try_read<T, L>(self, location: L) -> Result<T> where L: IoLoc<Self::Target, T>, Self::Backend: IoCapable<L::IoType>, try_read() argument 877 try_write<T, L>(self, location: L, value: T) -> Result where L: IoLoc<Self::Target, T>, Self::Backend: IoCapable<L::IoType>, try_write() argument 879 try_write<T, L>(self, location: L, value: T) -> Result where L: IoLoc<Self::Target, T>, Self::Backend: IoCapable<L::IoType>, try_write() argument 921 try_write_reg<T, L, V>(self, value: V) -> Result where L: IoLoc<Self::Target, T>, V: LocatedRegister<Self::Target, Location = L, Value = T>, Self::Backend: IoCapable<L::IoType>, try_write_reg() argument 923 try_write_reg<T, L, V>(self, value: V) -> Result where L: IoLoc<Self::Target, T>, V: LocatedRegister<Self::Target, Location = L, Value = T>, Self::Backend: IoCapable<L::IoType>, try_write_reg() argument 955 try_update<T, L, F>(self, location: L, f: F) -> Result where L: IoLoc<Self::Target, T>, Self::Backend: IoCapable<L::IoType>, F: FnOnce(T) -> T, try_update() argument 957 try_update<T, L, F>(self, location: L, f: F) -> Result where L: IoLoc<Self::Target, T>, Self::Backend: IoCapable<L::IoType>, F: FnOnce(T) -> T, try_update() argument 959 try_update<T, L, F>(self, location: L, f: F) -> Result where L: IoLoc<Self::Target, T>, Self::Backend: IoCapable<L::IoType>, F: FnOnce(T) -> T, try_update() argument 992 read<T, L>(self, location: L) -> T where L: IoLoc<Self::Target, T>, Self::Backend: IoCapable<L::IoType>, read() argument 994 read<T, L>(self, location: L) -> T where L: IoLoc<Self::Target, T>, Self::Backend: IoCapable<L::IoType>, read() argument 1023 write<T, L>(self, location: L, value: T) where L: IoLoc<Self::Target, T>, Self::Backend: IoCapable<L::IoType>, write() argument 1025 write<T, L>(self, location: L, value: T) where L: IoLoc<Self::Target, T>, Self::Backend: IoCapable<L::IoType>, write() argument 1065 write_reg<T, L, V>(self, value: V) where L: IoLoc<Self::Target, T>, V: LocatedRegister<Self::Target, Location = L, Value = T>, Self::Backend: IoCapable<L::IoType>, write_reg() argument 1067 write_reg<T, L, V>(self, value: V) where L: IoLoc<Self::Target, T>, V: LocatedRegister<Self::Target, Location = L, Value = T>, Self::Backend: IoCapable<L::IoType>, write_reg() argument 1099 update<T, L, F>(self, location: L, f: F) where L: IoLoc<Self::Target, T>, Self::Backend: IoCapable<L::IoType>, F: FnOnce(T) -> T, update() argument 1101 update<T, L, F>(self, location: L, f: F) where L: IoLoc<Self::Target, T>, Self::Backend: IoCapable<L::IoType>, F: FnOnce(T) -> T, update() argument 1103 update<T, L, F>(self, location: L, f: F) where L: IoLoc<Self::Target, T>, Self::Backend: IoCapable<L::IoType>, F: FnOnce(T) -> T, update() argument 1114 impl<'a, T: IoBase<'a>> Io<'a> for T {} global() implementation 1161 as_view(self) -> Mmio<'a, T> as_view() argument 1173 as_ptr<'a, T: ?Sized + KnownSize>(view: Self::View<'a, T>) -> *mut T as_ptr() argument 1179 project_view<'a, T: ?Sized + KnownSize, U: ?Sized + KnownSize>( _view: Self::View<'a, T>, ptr: *mut U, ) -> Self::View<'a, U> project_view() argument 1265 as_ptr<'a, T: ?Sized + KnownSize>(view: Self::View<'a, T>) -> *mut T as_ptr() argument 1271 project_view<'a, T: ?Sized + KnownSize, U: ?Sized + KnownSize>( view: Self::View<'a, T>, ptr: *mut U, ) -> Self::View<'a, U> project_view() argument 1284 as_view(self) -> RelaxedMmio<'a, T> as_view() argument 1312 relaxed(self) -> RelaxedMmio<'a, T> relaxed() argument 1332 as_ptr<'a, T: ?Sized + KnownSize>(view: Self::View<'a, T>) -> *mut T as_ptr() argument 1338 project_view<'a, T: ?Sized + KnownSize, U: ?Sized + KnownSize>( _view: Self::View<'a, T>, ptr: *mut U, ) -> Self::View<'a, U> project_view() argument 1405 copy_read<T: FromBytes>(view: Self::View<'_, T>) -> T copy_read() argument 1416 copy_write<T: IntoBytes>(view: Self::View<'_, T>, value: T) copy_write() argument 1473 as_ptr(self) -> *mut T as_ptr() argument 1534 as_ptr<'a, T: ?Sized + KnownSize>(view: Self::View<'a, T>) -> *mut T as_ptr() argument 1543 project_view<'a, T: ?Sized + KnownSize, U: ?Sized + KnownSize>( view: Self::View<'a, T>, ptr: *mut U, ) -> Self::View<'a, U> project_view() argument 1561 io_read(view: Self::View<'_, T>) -> T io_read() argument 1569 io_write<'a>(view: Self::View<'a, T>, value: T) io_write() argument 1599 copy_read<T: FromBytes>(view: Self::View<'_, T>) -> T copy_read() argument 1607 copy_write<T: IntoBytes>(view: Self::View<'_, T>, value: T) copy_write() argument 1620 as_view(self) -> IoSysMap<'a, T> as_view() argument [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...] |
| /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 969 raw_init<T>(slot: *mut T, init: impl PinInit<T>) raw_init() argument 984 raw_try_init<T, E>(slot: *mut T, init: impl PinInit<T, E>) -> Result<(), E> raw_try_init() argument 1068 chain<F>(self, f: F) -> ChainInit<Self, F, T, E> where F: FnOnce(&mut T) -> Result<(), E>, chain() argument 1147 pin_init_from_closure<T: ?Sized, E>( f: impl FnOnce(*mut T) -> Result<(), E>, ) -> impl PinInit<T, E> pin_init_from_closure() argument 1166 init_from_closure<T: ?Sized, E>( f: impl FnOnce(*mut T) -> Result<(), E>, ) -> impl Init<T, E> init_from_closure() argument 1177 cast_pin_init<T, U, E>(init: impl PinInit<T, E>) -> impl PinInit<U, E> cast_pin_init() argument 1190 cast_init<T, U, E>(init: impl Init<T, E>) -> impl Init<U, E> cast_init() argument 1200 uninit<T, E>() -> impl Init<MaybeUninit<T>, E> uninit() argument 1287 init_array_from_fn<I, const N: usize, T, E>( make_init: impl FnMut(usize) -> I, ) -> impl Init<[T; N], E> where I: Init<T, E>, init_array_from_fn() argument 1291 init_array_from_fn<I, const N: usize, T, E>( make_init: impl FnMut(usize) -> I, ) -> impl Init<[T; N], E> where I: Init<T, E>, global() argument 1312 pin_init_array_from_fn<I, const N: usize, T, E>( make_init: impl FnMut(usize) -> I, ) -> impl PinInit<[T; N], E> where I: PinInit<T, E>, pin_init_array_from_fn() argument 1316 pin_init_array_from_fn<I, const N: usize, T, E>( make_init: impl FnMut(usize) -> I, ) -> impl PinInit<[T; N], E> where I: PinInit<T, E>, global() argument 1348 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 1351 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 1392 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 1395 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 1411 unsafe impl<T> Init<T> for T {} global() implementation 1415 unsafe impl<T> PinInit<T> for T { global() implementation 1447 write_init<E>(self, init: impl Init<T, E>) -> Result<Self::Initialized, E> write_init() argument 1452 write_pin_init<E>(self, init: impl PinInit<T, E>) -> Result<Pin<Self::Initialized>, E> write_pin_init() argument 1456 type Initialized = &'static mut T; global() variable 1459 write_init<E>(self, init: impl Init<T, E>) -> Result<Self::Initialized, E> write_init() argument 1470 write_pin_init<E>(self, init: impl PinInit<T, E>) -> Result<Pin<Self::Initialized>, E> write_pin_init() argument 1580 init_zeroed<T: Zeroable>() -> impl Init<T> init_zeroed() argument 1615 zeroed<T: Zeroable>() -> T zeroed() argument 1771 pin_init<E>(value_init: impl PinInit<T, E>) -> impl PinInit<Self, E> pin_init() argument 1776 pin_init<E>(value_init: impl PinInit<T, E>) -> impl PinInit<Self, E> pin_init() argument 1784 pin_init<E>(value_init: impl PinInit<T, E>) -> impl PinInit<Self, E> pin_init() argument 1793 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] { global() implementation 297 new(source: T, l_len: usize) -> Self new() argument 307 into_ptr(self) -> Split<Ptr<'a, T, (Shared, Aligned, Valid)>> into_ptr() argument 369 via_immutable(self) -> (&'a T, &'a [T::Elem]) where T: Immutable, via_immutable() argument 418 via_into_bytes(self) -> (&'a T, &'a [T::Elem]) where T: IntoBytes, via_into_bytes() argument 467 via_unaligned(self) -> (&'a T, &'a [T::Elem]) where T: Unaligned, via_unaligned() argument 554 via_runtime_check(self) -> Result<(&'a T, &'a [T::Elem]), Self> via_runtime_check() argument 591 via_unchecked(self) -> (&'a T, &'a [T::Elem]) via_unchecked() argument 605 into_ptr(self) -> Split<Ptr<'a, T, (Exclusive, Aligned, Valid)>> into_ptr() argument 660 via_into_bytes(self) -> (&'a mut T, &'a mut [T::Elem]) where T: IntoBytes, via_into_bytes() argument 716 via_unaligned(self) -> (&'a mut T, &'a mut [T::Elem]) where T: Unaligned, via_unaligned() argument 774 via_runtime_check(self) -> Result<(&'a mut T, &'a mut [T::Elem]), Self> via_runtime_check() argument 796 via_unchecked(self) -> (&'a mut T, &'a mut [T::Elem]) via_unchecked() argument 832 l_len(&self) -> MetadataOf<T> l_len() argument 841 via_immutable(self) -> (Ptr<'a, T, I>, Ptr<'a, [T::Elem], I>) where T: Immutable, I: Invariants<Aliasing = Shared>, via_immutable() argument 853 via_into_bytes(self) -> (Ptr<'a, T, I>, Ptr<'a, [T::Elem], I>) where T: IntoBytes, via_into_bytes() argument 866 via_unaligned(self) -> (Ptr<'a, T, I>, Ptr<'a, [T::Elem], I>) where T: Unaligned, via_unaligned() argument 884 via_runtime_check(self) -> Result<(Ptr<'a, T, I>, Ptr<'a, [T::Elem], I>), Self> via_runtime_check() argument 908 via_unchecked(self) -> (Ptr<'a, T, I>, Ptr<'a, [T::Elem], I>) via_unchecked() argument [all...] |
| H A D | ref.rs | 82 new_unchecked(bytes: B) -> Ref<B, T> new_unchecked() argument 183 clone(&self) -> Ref<B, T> clone() argument 210 sized_from(bytes: B) -> Result<Ref<B, T>, CastError<B, T>> sized_from() argument 228 sized_from_prefix(bytes: B) -> Result<(Ref<B, T>, B), CastError<B, T>> sized_from_prefix() argument 249 sized_from_suffix(bytes: B) -> Result<(B, Ref<B, T>), CastError<B, T>> sized_from_suffix() argument 311 from_bytes(source: B) -> Result<Ref<B, T>, CastError<B, T>> from_bytes() argument 365 from_prefix(source: B) -> Result<(Ref<B, T>, B), CastError<B, T>> from_prefix() argument 430 from_suffix(source: B) -> Result<(B, Ref<B, T>), CastError<B, T>> from_suffix() argument 491 from_bytes_with_elems(source: B, count: usize) -> Result<Ref<B, T>, CastError<B, T>> from_bytes_with_elems() argument 545 from_prefix_with_elems( source: B, count: usize, ) -> Result<(Ref<B, T>, B), CastError<B, T>> from_prefix_with_elems() argument 591 from_suffix_with_elems( source: B, count: usize, ) -> Result<(B, Ref<B, T>), CastError<B, T>> from_suffix_with_elems() argument 623 into_ref(r: Self) -> &'a T into_ref() argument 671 into_mut(r: Self) -> &'a mut T into_mut() argument 760 read(r: &Self) -> T read() argument 784 write(r: &mut Self, t: T) write() argument 805 deref(&self) -> &T deref() argument 847 deref_mut(&mut self) -> &mut T deref_mut() argument 960 cast_for_sized<'a, T, A, R, S>( ptr: Ptr<'a, [u8], (A, Aligned, Valid)>, ) -> Ptr<'a, T, (A, Unaligned, Valid)> where T: FromBytes + KnownLayout + ?Sized, A: crate::invariant::Aliasing, [u8]: MutationCompatible<T, A, Initialized, Initialized, R>, T: TransmuteFromPtr<T, A, Initialized, Valid, crate::pointer::cast::IdCast, S>, cast_for_sized() argument 966 cast_for_sized<'a, T, A, R, S>( ptr: Ptr<'a, [u8], (A, Aligned, Valid)>, ) -> Ptr<'a, T, (A, Unaligned, Valid)> where T: FromBytes + KnownLayout + ?Sized, A: crate::invariant::Aliasing, [u8]: MutationCompatible<T, A, Initialized, Initialized, R>, T: TransmuteFromPtr<T, A, Initialized, Valid, crate::pointer::cast::IdCast, S>, cast_for_sized() argument 967 cast_for_sized<'a, T, A, R, S>( ptr: Ptr<'a, [u8], (A, Aligned, Valid)>, ) -> Ptr<'a, T, (A, Unaligned, Valid)> where T: FromBytes + KnownLayout + ?Sized, A: crate::invariant::Aliasing, [u8]: MutationCompatible<T, A, Initialized, Initialized, R>, T: TransmuteFromPtr<T, A, Initialized, Valid, crate::pointer::cast::IdCast, S>, cast_for_sized() argument 979 project(src: PtrInner<'_, [u8]>) -> *mut T cast_for_sized() argument [all...] |
| H A D | wrappers.rs | 166 clone(&self) -> Unalign<T> clone() argument 174 new(val: T) -> Unalign<T> new() argument 180 into_inner(self) -> T into_inner() argument 202 try_deref(&self) -> Result<&T, AlignmentError<&Self, T>> try_deref() argument 222 try_deref_mut(&mut self) -> Result<&mut T, AlignmentError<&mut Self, T>> try_deref_mut() argument 239 deref_unchecked(&self) -> &T deref_unchecked() argument 262 deref_mut_unchecked(&mut self) -> &mut T deref_mut_unchecked() argument 292 get_ptr(&self) -> *const T get_ptr() argument 312 get_mut_ptr(&mut self) -> *mut T get_mut_ptr() argument 319 set(&mut self, t: T) set() argument 401 get(&self) -> T get() argument 411 deref(&self) -> &T deref() argument 418 deref_mut(&mut self) -> &mut T deref_mut() argument 628 new(t: T) -> ReadOnly<T> new() argument 635 into_inner(r: ReadOnly<T>) -> T into_inner() argument 642 as_mut(r: &mut ReadOnly<T>) -> &mut T as_mut() argument 652 as_ref_unchecked(r: &ReadOnly<T>) -> &T as_ref_unchecked() argument 701 impl<T: ?Sized> SizeEq<ReadOnly<T>> for T { global() implementation 716 unsafe impl<T: ?Sized> TransmuteFrom<ReadOnly<T>, Valid, Valid> for T {} global() implementation 720 from(t: &'a T) -> &'a ReadOnly<T> from() argument [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/kernel/num/ |
| H A D | bounded.rs | 42 fits_within<T: Integer>(value: T, num_bits: u32) -> bool fits_within() argument 399 get(self) -> T get() argument 417 extend<const M: u32>(self) -> Bounded<T, M> extend() argument 446 try_shrink<const M: u32>(self) -> Option<Bounded<T, M>> try_shrink() argument 497 shr<const SHIFT: u32, const RES: u32>(self) -> Bounded<T, RES> shr() argument 528 shr_exact<const SHIFT: u32, const RES: u32>(self) -> Option<Bounded<T, RES>> shr_exact() argument 550 shl<const SHIFT: u32, const RES: u32>(self) -> Bounded<T, RES> shl() argument 596 try_into_bounded(self) -> Option<Bounded<T, N>> try_into_bounded() argument 605 try_into_bounded(self) -> Option<Bounded<T, N>> try_into_bounded() argument 677 add(self, rhs: Bounded<T, M>) -> Self::Output add() argument 689 bitand(self, rhs: Bounded<T, M>) -> Self::Output bitand() argument 701 bitor(self, rhs: Bounded<T, M>) -> Self::Output bitor() argument 713 bitxor(self, rhs: Bounded<T, M>) -> Self::Output bitxor() argument 725 div(self, rhs: Bounded<T, M>) -> Self::Output div() argument 737 mul(self, rhs: Bounded<T, M>) -> Self::Output mul() argument 749 rem(self, rhs: Bounded<T, M>) -> Self::Output rem() argument 761 sub(self, rhs: Bounded<T, M>) -> Self::Output sub() argument 987 impl<T> AtLeastXBits<32> for T where T: AtLeastXBits<64> {} global() implementation 997 impl<T> AtLeastXBits<16> for T where T: AtLeastXBits<32> {} global() implementation 1005 impl<T> AtLeastXBits<8> for T where T: AtLeastXBits<16> {} global() implementation 1061 impl<T> FitsInXBits<16> for T where T: FitsInXBits<8> {} global() implementation 1066 impl<T> FitsInXBits<32> for T where T: FitsInXBits<16> {} global() implementation 1074 impl<T> FitsInXBits<64> for T where T: FitsInXBits<32> {} global() implementation 1128 from(value: Bounded<T, 1>) -> Self from() argument [all...] |
| /linux/rust/zerocopy/src/pointer/ |
| H A D | ptr.rs | 92 from_inner(ptr: PtrInner<'a, T>) -> Ptr<'a, T, I> from_inner() argument 105 as_inner(&self) -> PtrInner<'a, T> as_inner() argument 238 as_ref(self) -> &'a T as_ref() argument 294 reborrow<'b>(&'b mut self) -> Ptr<'b, T, I> where 'a: 'b, reborrow() argument 340 reborrow_shared<'b>(&'b mut self) -> Ptr<'b, T, (Shared, I::Alignment, I::Validity)> where 'a: 'b, reborrow_shared() argument 388 as_mut(self) -> &'a mut T as_mut() argument 439 transmute<U, V, R>(self) -> Ptr<'a, U, (I::Aliasing, Unaligned, V)> where V: Validity, U: TransmuteFromPtr<T, I::Aliasing, I::Validity, V, <U as SizeEq<T>>::CastFrom, R> + SizeEq<T> + ?Sized, transmute() argument 451 transmute_with<U, V, C, R>(self) -> Ptr<'a, U, (I::Aliasing, Unaligned, V)> where V: Validity, U: TransmuteFromPtr<T, I::Aliasing, I::Validity, V, C, R> + ?Sized, C: CastExact<T, U>, transmute_with() argument 452 transmute_with<U, V, C, R>(self) -> Ptr<'a, U, (I::Aliasing, Unaligned, V)> where V: Validity, U: TransmuteFromPtr<T, I::Aliasing, I::Validity, V, C, R> + ?Sized, C: CastExact<T, U>, transmute_with() argument 472 recall_validity<V, R>(self) -> Ptr<'a, T, (I::Aliasing, I::Alignment, V)> where V: Validity, T: TransmuteFromPtr<T, I::Aliasing, I::Validity, V, IdCast, R>, recall_validity() argument 475 recall_validity<V, R>(self) -> Ptr<'a, T, (I::Aliasing, I::Alignment, V)> where V: Validity, T: TransmuteFromPtr<T, I::Aliasing, I::Validity, V, IdCast, R>, recall_validity() argument 514 project_transmute_unchecked<U: ?Sized, V, P>( self, ) -> Ptr<'a, U, (I::Aliasing, Unaligned, V)> where V: Validity, P: crate::pointer::cast::Project<T, U>, project_transmute_unchecked() argument 561 into_unalign( self, ) -> Ptr<'a, crate::Unalign<T>, (I::Aliasing, Aligned, I::Validity)> into_unalign() argument 638 assume_invariants<H: Invariants>(self) -> Ptr<'a, T, H> assume_invariants() argument 653 unify_invariants< H: Invariants<Aliasing = I::Aliasing, Alignment = I::Alignment, Validity = I::Validity>, >( self, ) -> Ptr<'a, T, H> unify_invariants() argument 669 assume_alignment<A: Alignment>( self, ) -> Ptr<'a, T, (I::Aliasing, A, I::Validity)> assume_alignment() argument 680 try_into_aligned( self, ) -> Result<Ptr<'a, T, (I::Aliasing, Aligned, I::Validity)>, AlignmentError<Self, T>> where T: Sized, try_into_aligned() argument 699 bikeshed_recall_aligned(self) -> Ptr<'a, T, (I::Aliasing, Aligned, I::Validity)> where T: crate::Unaligned, bikeshed_recall_aligned() argument 719 assume_validity<V: Validity>( self, ) -> Ptr<'a, T, (I::Aliasing, I::Alignment, V)> assume_validity() argument 735 assume_initialized( self, ) -> Ptr<'a, T, (I::Aliasing, I::Alignment, Initialized)> assume_initialized() argument 749 assume_valid(self) -> Ptr<'a, T, (I::Aliasing, I::Alignment, Valid)> assume_valid() argument 770 try_into_valid<R, S>( mut self, ) -> Result<Ptr<'a, T, (I::Aliasing, I::Alignment, Valid)>, ValidityError<Self, T>> where T: TryFromBytes + Read<I::Aliasing, R> + TryTransmuteFromPtr<T, I::Aliasing, I::Validity, Valid, IdCast, S>, ReadOnly<T>: Read<I::Aliasing, R>, I::Aliasing: Reference, I: Invariants<Validity = Initialized>, try_into_valid() argument 774 try_into_valid<R, S>( mut self, ) -> Result<Ptr<'a, T, (I::Aliasing, I::Alignment, Valid)>, ValidityError<Self, T>> where T: TryFromBytes + Read<I::Aliasing, R> + TryTransmuteFromPtr<T, I::Aliasing, I::Validity, Valid, IdCast, S>, ReadOnly<T>: Read<I::Aliasing, R>, I::Aliasing: Reference, I: Invariants<Validity = Initialized>, try_into_valid() argument 798 forget_aligned(self) -> Ptr<'a, T, (I::Aliasing, Unaligned, I::Validity)> forget_aligned() argument 834 cast_unchecked<U, C: Cast<T, U>>( self, ) -> Ptr<'a, U, (I::Aliasing, Unaligned, I::Validity)> where U: 'a + CastableFrom<T, I::Validity, I::Validity> + ?Sized, cast_unchecked() argument 838 cast_unchecked<U, C: Cast<T, U>>( self, ) -> Ptr<'a, U, (I::Aliasing, Unaligned, I::Validity)> where U: 'a + CastableFrom<T, I::Validity, I::Validity> + ?Sized, cast_unchecked() argument 863 cast<U, C, R>(self) -> Ptr<'a, U, (I::Aliasing, Unaligned, I::Validity)> where T: MutationCompatible<U, I::Aliasing, I::Validity, I::Validity, R>, U: 'a + ?Sized + CastableFrom<T, I::Validity, I::Validity>, C: Cast<T, U>, cast() argument 864 cast<U, C, R>(self) -> Ptr<'a, U, (I::Aliasing, Unaligned, I::Validity)> where T: MutationCompatible<U, I::Aliasing, I::Validity, I::Validity, R>, U: 'a + ?Sized + CastableFrom<T, I::Validity, I::Validity>, C: Cast<T, U>, cast() argument 940 try_with_unchecked<U, J, E, F>( self, f: F, ) -> Result<Ptr<'a, U, J>, E::Mapped> where U: 'a + ?Sized, J: Invariants<Aliasing = I::Aliasing>, E: TryWithError<Self>, F: FnOnce(Ptr<'a, T, I>) -> Result<Ptr<'a, U, J>, E>, try_with_unchecked() argument 987 try_with<U, J, E, F>(self, f: F) -> Result<Ptr<'a, U, J>, E::Mapped> where U: 'a + ?Sized, J: Invariants<Aliasing = I::Aliasing>, E: TryWithError<Self>, F: FnOnce(Ptr<'a, T, I>) -> Result<Ptr<'a, U, J>, E>, I: Invariants<Aliasing = Shared>, try_with() argument 1020 as_bytes<R>(self) -> Ptr<'a, [u8], (I::Aliasing, Aligned, Valid)> where [u8]: TransmuteFromPtr<T, I::Aliasing, I::Validity, Valid, AsBytesCast, R>, as_bytes() argument 1035 as_slice(self) -> Ptr<'a, [T], I> as_slice() argument 1217 get_mut(self) -> Ptr<'a, T, I> get_mut() argument 1273 iter(self) -> impl Iterator<Item = Ptr<'a, T, I>> iter() argument 1346 test<T, I, const N: usize>(metas: I) where T: ?Sized + KnownLayout + Immutable + FromBytes, I: IntoIterator<Item = Option<T::PointerMetadata>> + Clone, test() argument 1378 validate_and_get_len< T: ?Sized + KnownLayout + FromBytes + Immutable, >( slf: Ptr<'_, T, (Shared, Aligned, Initialized)>, ) -> usize test() argument 1386 let t: *const T = t; test() constant [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 { global() implementation 81 let ptr: *const T = self; addr() constant 86 impl<T: ?Sized> AsAddress for &mut T { global() implementation 89 let ptr: *const T = self; addr() constant 101 impl<T: ?Sized> AsAddress for *const T { global() implementation 117 impl<T: ?Sized> AsAddress for *mut T { global() implementation 120 let ptr: *const T = self; addr() constant 389 new_box<T>( meta: T::PointerMetadata, allocate: unsafe fn(core::alloc::Layout) -> *mut u8, ) -> Result<alloc::boxed::Box<T>, AllocError> where T: ?Sized + crate::KnownLayout, new_box() argument 507 new_in_bounds(t: &T, meta: usize) -> Option<Self> where T: KnownLayout<PointerMetadata = usize>, new_in_bounds() argument 596 validate_cast_and_convert_metadata( addr: usize, bytes_len: MetadataOf<[u8]>, cast_type: CastType, meta: Option<T::PointerMetadata>, ) -> Result<(MetadataOf<T>, MetadataOf<[u8]>), MetadataCastError> validate_cast_and_convert_metadata() argument 702 slice_from_raw_parts(data: Self, len: usize) -> NonNull<[T]> slice_from_raw_parts() argument 714 slice_from_raw_parts(data: Self, len: usize) -> NonNull<[T]> slice_from_raw_parts() argument 825 new(t: T) -> Align<T, A> new() argument 849 new(t: T) -> ForceUnalign<T, A> new() argument [all...] |
| /linux/drivers/gpu/drm/i915/display/ |
| H A D | intel_display_params.c | 14 #define intel_display_param_named(name, T, perm, desc) \ argument 17 #define intel_display_param_named_unsafe(name, T, perm, desc) \ argument 22 #define MEMBER(T, member, value, ...) .member = (value), argument 200 #define PRINT(T, x, ...) _param_print(p, driver_name, #x, params->x); in intel_display_params_dump() argument 223 #define DUP(T, x, ...) _param_dup(&dest->x); in intel_display_params_copy() argument 243 #define FREE(T, x, ...) _param_free(¶ms->x); in intel_display_params_free() argument
|