File tree 1 file changed +6
-4
lines changed
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -172,15 +172,17 @@ pub enum TypeInfoError {
172
172
173
173
/// Compile-time type information for various reflected types.
174
174
///
175
- /// Generally, for any given type, this value can be retrieved one of three ways:
175
+ /// Generally, for any given type, this value can be retrieved one of four ways:
176
176
///
177
177
/// 1. [`Typed::type_info`]
178
- /// 2. [`PartialReflect::get_represented_type_info`]
179
- /// 3. [`TypeRegistry::get_type_info`]
178
+ /// 2. [`DynamicTyped::reflect_type_info`]
179
+ /// 3. [`PartialReflect::get_represented_type_info`]
180
+ /// 4. [`TypeRegistry::get_type_info`]
180
181
///
181
182
/// Each return a static reference to [`TypeInfo`], but they all have their own use cases.
182
183
/// For example, if you know the type at compile time, [`Typed::type_info`] is probably
183
- /// the simplest. If all you have is a `dyn PartialReflect`, you'll probably want [`PartialReflect::get_represented_type_info`].
184
+ /// the simplest. If you have a `dyn Reflect` you can use [`DynamicTyped::reflect_type_info`].
185
+ /// If all you have is a `dyn PartialReflect`, you'll probably want [`PartialReflect::get_represented_type_info`].
184
186
/// Lastly, if all you have is a [`TypeId`] or [type path], you will need to go through
185
187
/// [`TypeRegistry::get_type_info`].
186
188
///
You can’t perform that action at this time.
0 commit comments