You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Returns the `GetTypeRegistration` impl as a `TokenStream`.
356
-
///
357
-
/// Returns a specific implementation for structs and this method should be preferred over the generic [`get_type_registration`](crate::ReflectMeta) method
358
-
pubfnget_type_registration(
359
-
&self,
360
-
where_clause_options:&WhereClauseOptions,
361
-
) -> proc_macro2::TokenStream{
362
-
let reflect_path = self.meta.bevy_reflect_path();
363
-
364
-
crate::registration::impl_get_type_registration(
365
-
self.meta.type_name(),
366
-
reflect_path,
367
-
self.meta.traits().idents(),
368
-
self.meta.generics(),
369
-
where_clause_options,
370
-
Some(&self.serialization_denylist),
371
-
)
372
-
}
373
-
374
356
/// Get a collection of types which are exposed to the reflection API
375
357
pubfnactive_types(&self) -> Vec<syn::Type>{
376
358
self.active_fields()
377
359
.map(|field| field.data.ty.clone())
378
360
.collect()
379
361
}
380
362
381
-
/// Get an iterator of fields which are exposed to the reflection API
363
+
/// Get an iterator of fields which are exposed to the reflection API.
/// Returns the `GetTypeRegistration` impl as a `TokenStream`.
400
+
///
401
+
/// Returns a specific implementation for structs and this method should be preferred over the generic [`get_type_registration`](crate::ReflectMeta) method
0 commit comments