mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 07:04:33 +00:00
doc(bevy_reflect): add note about trait bounds on impl_type_path
(#11810)
# Objective - fixes #11651
This commit is contained in:
parent
00313912bb
commit
33676112da
1 changed files with 2 additions and 1 deletions
|
@ -614,9 +614,10 @@ pub fn impl_from_reflect_value(input: TokenStream) -> TokenStream {
|
|||
/// 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)
|
||||
/// 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):
|
||||
|
|
Loading…
Reference in a new issue