Lines Matching full:foo
45 struct Foo { in test_derive_object()
56 struct Foo { in test_derive_object()
62 Foo, in test_derive_object()
64 ::qemu_api::qom::ParentField<<Foo as ::qemu_api::qom::ObjectImpl>::ParentType> in test_derive_object()
68 … ::qemu_api::bindings::type_register_static(&<Foo as ::qemu_api::qom::ObjectImpl>::TYPE_INFO); in test_derive_object()
81 struct Foo { in test_derive_tryinto()
92 enum Foo { in test_derive_tryinto()
98 impl Foo { in test_derive_tryinto() impl
107 const First: u8 = Foo::First as u8; in test_derive_tryinto()
108 const Second: u8 = Foo::Second as u8; in test_derive_tryinto()
110 First => core::result::Result::Ok(Foo::First), in test_derive_tryinto()
111 Second => core::result::Result::Ok(Foo::Second), in test_derive_tryinto()
116 Err(_) => panic!("invalid value for Foo"), in test_derive_tryinto()
121 impl core::convert::TryFrom<u8> for Foo { in test_derive_tryinto()
126 const First: u8 = Foo::First as u8; in test_derive_tryinto()
127 const Second: u8 = Foo::Second as u8; in test_derive_tryinto()
129 First => core::result::Result::Ok(Foo::First), in test_derive_tryinto()
130 Second => core::result::Result::Ok(Foo::Second), in test_derive_tryinto()