Skip to content

Commit

Permalink
implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaminBrienen committed Sep 19, 2024
1 parent c2d54f5 commit 9ad130f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions crates/bevy_reflect/src/impls/std.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ use crate::{
TypeRegistration, TypeRegistry, Typed, ValueInfo,
};
use bevy_reflect_derive::{impl_reflect, impl_reflect_value};
use core::marker::PhantomData;
use std::fmt;
use std::{
any::Any,
Expand Down Expand Up @@ -1484,6 +1485,11 @@ impl_reflect! {
}
}

impl_reflect! {
#[type_path = "core::marker"]
struct PhantomData<T: ?Sized>;
}

impl<T: TypePath + ?Sized> TypePath for &'static T {
fn type_path() -> &'static str {
static CELL: GenericTypePathCell = GenericTypePathCell::new();
Expand Down

0 comments on commit 9ad130f

Please sign in to comment.