Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Merged by Bors] - bevy_reflect: ReflectFromPtr to create &dyn Reflect from a *const () #4475

Closed
Closed
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
change print in doctest to assert
  • Loading branch information
jakobhellermann committed May 13, 2022
commit 55fb2eacd64790ab46dd37f547ea0eeecde27e99
2 changes: 1 addition & 1 deletion crates/bevy_reflect/src/type_registry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ impl<T: for<'a> Deserialize<'a> + Reflect> FromType<T> for ReflectDeserialize {
/// // SAFE: `value` is of type `Reflected`, which the `ReflectFromPtr` was created for
/// let value = unsafe { reflect_from_ptr.as_reflect(&value) };
///
/// println!("{:?}", value);
/// assert!(value.reflect_partial_eq(&Reflected("Hello world!".to_string())).unwrap());
/// ```
#[derive(Clone)]
pub struct ReflectFromPtr {
jakobhellermann marked this conversation as resolved.
Show resolved Hide resolved
Expand Down