doc(bevy_reflect): add note about trait bounds on impl_type_path (#11810)

# Objective

- fixes #11651
This commit is contained in:
Tristan Guichaoua 2024-02-10 16:18:16 +01:00 committed by GitHub
parent 00313912bb
commit 33676112da
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -614,9 +614,10 @@ pub fn impl_from_reflect_value(input: TokenStream) -> TokenStream {
/// impl_type_path!(::foreign_crate::foo::bar::Baz); /// impl_type_path!(::foreign_crate::foo::bar::Baz);
/// ``` /// ```
/// ///
/// On a generic type: /// On a generic type (this can also accept trait bounds):
/// ```ignore (bevy_reflect is not accessible from this crate) /// ```ignore (bevy_reflect is not accessible from this crate)
/// impl_type_path!(::foreign_crate::Foo<T>); /// impl_type_path!(::foreign_crate::Foo<T>);
/// impl_type_path!(::foreign_crate::Goo<T: ?Sized>);
/// ``` /// ```
/// ///
/// On a primitive (note this will not compile for a non-primitive type): /// On a primitive (note this will not compile for a non-primitive type):