Searched refs:Foo (Results 1 – 6 of 6) sorted by relevance
| /linux/rust/pin-init/src/ |
| H A D | __internal.rs | 201 struct Foo { in init() 205 let mut slot: Pin<&mut StackInit<Foo>> = pin!(StackInit::uninit()); in init() 206 let value: Result<Pin<&mut Foo>, core::convert::Infallible> = in init() 207 slot.as_mut().init(crate::init!(Foo { in init() 213 let value: Result<Pin<&mut Foo>, core::convert::Infallible> = in stack_init_reuse() 214 slot.as_mut().init(crate::init!(Foo { in stack_init_reuse() 217 struct Foo { stack_init_reuse() struct 218 astack_init_reuse::Foo stack_init_reuse() argument 219 bstack_init_reuse::Foo stack_init_reuse() argument
|
| /linux/rust/pin-init/ |
| H A D | README.md | 96 struct Foo { 102 let foo = pin_init!(Foo { 108 `foo` now is of the type [`impl PinInit<Foo>`]. We can now use any smart pointer that we like 109 (or just the stack) to actually initialize a `Foo`: 112 let foo: Result<Pin<Box<Foo>>, AllocError> = Box::pin_init(foo); 238 [`impl PinInit<Foo>`]: https://docs.rs/pin-init/latest/pin_init/trait.PinInit.html
|
| /linux/rust/zerocopy/src/ |
| H A D | layout.rs | 1750 struct Foo([u8; $offset]$(, [[u8; $elem_size]])?); in test_validate_rust_layout() 1775 NonNull::new(slc.as_ptr() as *mut Foo).unwrap() in test_validate_rust_layout() 1779 let f = None::<fn(NonNull<Foo>) -> NonNull<u8>>; in test_validate_rust_layout() 1783 … let f: Option<fn(NonNull<Foo>) -> NonNull<u8>> = Some(|ptr: NonNull<Foo>| unsafe { in test_validate_rust_layout() 1791 test::<Foo, _>(args, with_elems, addr_of_slice_field); in test_validate_rust_layout()
|
| H A D | lib.rs | 7299 struct Foo { in test_to_methods() struct 7313 &mut Foo { a: 1, b: Wrapping(2), c: None }, in test_to_methods() 7315 &Foo { a: post_mutation_expected_a, b: Wrapping(2), c: None }, in test_to_methods() 7328 struct Foo { in test_array() struct 7332 let foo = Foo { a: [0xFFFF; 33] }; in test_array() 7354 struct Foo<T> { in test_transparent_packed_generic_struct() struct 7359 assert_impl_all!(Foo<u32>: FromZeros, FromBytes, IntoBytes); in test_transparent_packed_generic_struct() 7360 assert_impl_all!(Foo<u8>: Unaligned); in test_transparent_packed_generic_struct()
|
| /linux/Documentation/rust/ |
| H A D | coding-guidelines.rst | 150 /// Returns a new [`Foo`]. 159 pub fn f(x: i32) -> Foo {
|
| /linux/Documentation/translations/it_IT/doc-guide/ |
| H A D | kernel-doc.rst | 326 * @foo: The Foo member.
|