pub trait FromReflect: Reflect + Sized {
// Required method
fn from_reflect(reflect: &dyn Reflect) -> Option<Self>;
// Provided method
fn take_from_reflect(
reflect: Box<dyn Reflect>,
) -> Result<Self, Box<dyn Reflect>> { ... }
}
Expand description
A trait that enables types to be dynamically constructed from reflected data.
It’s recommended to use the derive macro rather than manually implementing this trait.
FromReflect
allows dynamic proxy types, like DynamicStruct
, to be used to generate
their concrete counterparts.
It can also be used to partially or fully clone a type (depending on whether it has
ignored fields or not).
In some cases, this trait may even be required.
Deriving Reflect
on an enum requires all its fields to implement FromReflect
.
Additionally, some complex types like Vec<T>
require that their element types
implement this trait.
The reason for such requirements is that some operations require new data to be constructed,
such as swapping to a new variant or pushing data to a homogeneous list.
See the crate-level documentation to see how this trait can be used.
Required Methods§
Sourcefn from_reflect(reflect: &dyn Reflect) -> Option<Self>
fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Constructs a concrete instance of Self
from a reflected value.
Provided Methods§
Sourcefn take_from_reflect(
reflect: Box<dyn Reflect>,
) -> Result<Self, Box<dyn Reflect>>
fn take_from_reflect( reflect: Box<dyn Reflect>, ) -> Result<Self, Box<dyn Reflect>>
Attempts to downcast the given value to Self
using,
constructing the value using from_reflect
if that fails.
This method is more efficient than using from_reflect
for cases where
the given value is likely a boxed instance of Self
(i.e. Box<Self>
)
rather than a boxed dynamic type (e.g. DynamicStruct
, DynamicList
, etc.).
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementations on Foreign Types§
Source§impl FromReflect for &'static str
impl FromReflect for &'static str
fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl FromReflect for &'static Path
impl FromReflect for &'static Path
fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl FromReflect for EulerRot
Available on crate feature glam
only.
impl FromReflect for EulerRot
glam
only.fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl FromReflect for Cow<'static, str>
impl FromReflect for Cow<'static, str>
fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl FromReflect for Cow<'static, Path>
impl FromReflect for Cow<'static, Path>
fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl FromReflect for bool
impl FromReflect for bool
fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl FromReflect for char
impl FromReflect for char
fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl FromReflect for f32
impl FromReflect for f32
fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl FromReflect for f64
impl FromReflect for f64
fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl FromReflect for i8
impl FromReflect for i8
fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl FromReflect for i16
impl FromReflect for i16
fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl FromReflect for i32
impl FromReflect for i32
fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl FromReflect for i64
impl FromReflect for i64
fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl FromReflect for i128
impl FromReflect for i128
fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl FromReflect for isize
impl FromReflect for isize
fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl FromReflect for u8
impl FromReflect for u8
fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl FromReflect for u16
impl FromReflect for u16
fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl FromReflect for u32
impl FromReflect for u32
fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl FromReflect for u64
impl FromReflect for u64
fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl FromReflect for u128
impl FromReflect for u128
fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl FromReflect for ()
impl FromReflect for ()
fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl FromReflect for usize
impl FromReflect for usize
fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl FromReflect for BVec2
Available on crate feature glam
only.
impl FromReflect for BVec2
glam
only.fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl FromReflect for BVec3
Available on crate feature glam
only.
impl FromReflect for BVec3
glam
only.fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl FromReflect for BVec4
Available on crate feature glam
only.
impl FromReflect for BVec4
glam
only.fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl FromReflect for BVec3A
Available on crate feature glam
only.
impl FromReflect for BVec3A
glam
only.fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl FromReflect for BVec4A
Available on crate feature glam
only.
impl FromReflect for BVec4A
glam
only.fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl FromReflect for Affine2where
Self: Any + Send + Sync,
Mat2: FromReflect + TypePath + RegisterForReflection,
Vec2: FromReflect + TypePath + RegisterForReflection,
Available on crate feature glam
only.
impl FromReflect for Affine2where
Self: Any + Send + Sync,
Mat2: FromReflect + TypePath + RegisterForReflection,
Vec2: FromReflect + TypePath + RegisterForReflection,
glam
only.fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl FromReflect for Affine3Awhere
Self: Any + Send + Sync,
Mat3A: FromReflect + TypePath + RegisterForReflection,
Vec3A: FromReflect + TypePath + RegisterForReflection,
Available on crate feature glam
only.
impl FromReflect for Affine3Awhere
Self: Any + Send + Sync,
Mat3A: FromReflect + TypePath + RegisterForReflection,
Vec3A: FromReflect + TypePath + RegisterForReflection,
glam
only.fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl FromReflect for Mat3
Available on crate feature glam
only.
impl FromReflect for Mat3
glam
only.fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl FromReflect for Mat2
Available on crate feature glam
only.
impl FromReflect for Mat2
glam
only.fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl FromReflect for Mat3A
Available on crate feature glam
only.
impl FromReflect for Mat3A
glam
only.fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl FromReflect for Mat4
Available on crate feature glam
only.
impl FromReflect for Mat4
glam
only.fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl FromReflect for Quat
Available on crate feature glam
only.
impl FromReflect for Quat
glam
only.fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl FromReflect for Vec3A
Available on crate feature glam
only.
impl FromReflect for Vec3A
glam
only.fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl FromReflect for Vec4
Available on crate feature glam
only.
impl FromReflect for Vec4
glam
only.fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl FromReflect for Vec2
Available on crate feature glam
only.
impl FromReflect for Vec2
glam
only.fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl FromReflect for Vec3
Available on crate feature glam
only.
impl FromReflect for Vec3
glam
only.fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl FromReflect for DAffine2where
Self: Any + Send + Sync,
DMat2: FromReflect + TypePath + RegisterForReflection,
DVec2: FromReflect + TypePath + RegisterForReflection,
Available on crate feature glam
only.
impl FromReflect for DAffine2where
Self: Any + Send + Sync,
DMat2: FromReflect + TypePath + RegisterForReflection,
DVec2: FromReflect + TypePath + RegisterForReflection,
glam
only.fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl FromReflect for DAffine3where
Self: Any + Send + Sync,
DMat3: FromReflect + TypePath + RegisterForReflection,
DVec3: FromReflect + TypePath + RegisterForReflection,
Available on crate feature glam
only.
impl FromReflect for DAffine3where
Self: Any + Send + Sync,
DMat3: FromReflect + TypePath + RegisterForReflection,
DVec3: FromReflect + TypePath + RegisterForReflection,
glam
only.fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl FromReflect for DMat2
Available on crate feature glam
only.
impl FromReflect for DMat2
glam
only.fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl FromReflect for DMat3
Available on crate feature glam
only.
impl FromReflect for DMat3
glam
only.fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl FromReflect for DMat4
Available on crate feature glam
only.
impl FromReflect for DMat4
glam
only.fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl FromReflect for DQuat
Available on crate feature glam
only.
impl FromReflect for DQuat
glam
only.fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl FromReflect for DVec2
Available on crate feature glam
only.
impl FromReflect for DVec2
glam
only.fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl FromReflect for DVec3
Available on crate feature glam
only.
impl FromReflect for DVec3
glam
only.fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl FromReflect for DVec4
Available on crate feature glam
only.
impl FromReflect for DVec4
glam
only.fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl FromReflect for IVec2
Available on crate feature glam
only.
impl FromReflect for IVec2
glam
only.fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl FromReflect for IVec3
Available on crate feature glam
only.
impl FromReflect for IVec3
glam
only.fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl FromReflect for IVec4
Available on crate feature glam
only.
impl FromReflect for IVec4
glam
only.fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl FromReflect for I64Vec2
Available on crate feature glam
only.
impl FromReflect for I64Vec2
glam
only.fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl FromReflect for I64Vec3
Available on crate feature glam
only.
impl FromReflect for I64Vec3
glam
only.fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl FromReflect for I64Vec4
Available on crate feature glam
only.
impl FromReflect for I64Vec4
glam
only.fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl FromReflect for UVec2
Available on crate feature glam
only.
impl FromReflect for UVec2
glam
only.fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl FromReflect for UVec3
Available on crate feature glam
only.
impl FromReflect for UVec3
glam
only.fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl FromReflect for UVec4
Available on crate feature glam
only.
impl FromReflect for UVec4
glam
only.fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl FromReflect for U64Vec2
Available on crate feature glam
only.
impl FromReflect for U64Vec2
glam
only.fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl FromReflect for U64Vec3
Available on crate feature glam
only.
impl FromReflect for U64Vec3
glam
only.fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl FromReflect for U64Vec4
Available on crate feature glam
only.
impl FromReflect for U64Vec4
glam
only.fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl FromReflect for SmolStr
Available on crate feature smol_str
only.
impl FromReflect for SmolStr
smol_str
only.fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl FromReflect for Uuid
Available on crate feature uuid
only.
impl FromReflect for Uuid
uuid
only.fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl FromReflect for String
impl FromReflect for String
fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl FromReflect for TypeId
impl FromReflect for TypeId
fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl FromReflect for RangeFull
impl FromReflect for RangeFull
fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl FromReflect for Duration
impl FromReflect for Duration
fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl FromReflect for OsString
impl FromReflect for OsString
fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl FromReflect for PathBuf
impl FromReflect for PathBuf
fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl FromReflect for Instant
impl FromReflect for Instant
fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl FromReflect for NonZeroI8
impl FromReflect for NonZeroI8
fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl FromReflect for NonZeroI16
impl FromReflect for NonZeroI16
fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl FromReflect for NonZeroI32
impl FromReflect for NonZeroI32
fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl FromReflect for NonZeroI64
impl FromReflect for NonZeroI64
fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl FromReflect for NonZeroI128
impl FromReflect for NonZeroI128
fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl FromReflect for NonZeroIsize
impl FromReflect for NonZeroIsize
fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl FromReflect for NonZeroU8
impl FromReflect for NonZeroU8
fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl FromReflect for NonZeroU16
impl FromReflect for NonZeroU16
fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl FromReflect for NonZeroU32
impl FromReflect for NonZeroU32
fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl FromReflect for NonZeroU64
impl FromReflect for NonZeroU64
fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl FromReflect for NonZeroU128
impl FromReflect for NonZeroU128
fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl FromReflect for NonZeroUsize
impl FromReflect for NonZeroUsize
fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl<A: FromReflect + TypePath + GetTypeRegistration> FromReflect for (A,)
impl<A: FromReflect + TypePath + GetTypeRegistration> FromReflect for (A,)
fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl<A: FromReflect + TypePath + GetTypeRegistration, B: FromReflect + TypePath + GetTypeRegistration> FromReflect for (A, B)
impl<A: FromReflect + TypePath + GetTypeRegistration, B: FromReflect + TypePath + GetTypeRegistration> FromReflect for (A, B)
fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl<A: FromReflect + TypePath + GetTypeRegistration, B: FromReflect + TypePath + GetTypeRegistration, C: FromReflect + TypePath + GetTypeRegistration> FromReflect for (A, B, C)
impl<A: FromReflect + TypePath + GetTypeRegistration, B: FromReflect + TypePath + GetTypeRegistration, C: FromReflect + TypePath + GetTypeRegistration> FromReflect for (A, B, C)
fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl<A: FromReflect + TypePath + GetTypeRegistration, B: FromReflect + TypePath + GetTypeRegistration, C: FromReflect + TypePath + GetTypeRegistration, D: FromReflect + TypePath + GetTypeRegistration> FromReflect for (A, B, C, D)
impl<A: FromReflect + TypePath + GetTypeRegistration, B: FromReflect + TypePath + GetTypeRegistration, C: FromReflect + TypePath + GetTypeRegistration, D: FromReflect + TypePath + GetTypeRegistration> FromReflect for (A, B, C, D)
fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl<A: FromReflect + TypePath + GetTypeRegistration, B: FromReflect + TypePath + GetTypeRegistration, C: FromReflect + TypePath + GetTypeRegistration, D: FromReflect + TypePath + GetTypeRegistration, E: FromReflect + TypePath + GetTypeRegistration> FromReflect for (A, B, C, D, E)
impl<A: FromReflect + TypePath + GetTypeRegistration, B: FromReflect + TypePath + GetTypeRegistration, C: FromReflect + TypePath + GetTypeRegistration, D: FromReflect + TypePath + GetTypeRegistration, E: FromReflect + TypePath + GetTypeRegistration> FromReflect for (A, B, C, D, E)
fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl<A: FromReflect + TypePath + GetTypeRegistration, B: FromReflect + TypePath + GetTypeRegistration, C: FromReflect + TypePath + GetTypeRegistration, D: FromReflect + TypePath + GetTypeRegistration, E: FromReflect + TypePath + GetTypeRegistration, F: FromReflect + TypePath + GetTypeRegistration> FromReflect for (A, B, C, D, E, F)
impl<A: FromReflect + TypePath + GetTypeRegistration, B: FromReflect + TypePath + GetTypeRegistration, C: FromReflect + TypePath + GetTypeRegistration, D: FromReflect + TypePath + GetTypeRegistration, E: FromReflect + TypePath + GetTypeRegistration, F: FromReflect + TypePath + GetTypeRegistration> FromReflect for (A, B, C, D, E, F)
fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl<A: FromReflect + TypePath + GetTypeRegistration, B: FromReflect + TypePath + GetTypeRegistration, C: FromReflect + TypePath + GetTypeRegistration, D: FromReflect + TypePath + GetTypeRegistration, E: FromReflect + TypePath + GetTypeRegistration, F: FromReflect + TypePath + GetTypeRegistration, G: FromReflect + TypePath + GetTypeRegistration> FromReflect for (A, B, C, D, E, F, G)
impl<A: FromReflect + TypePath + GetTypeRegistration, B: FromReflect + TypePath + GetTypeRegistration, C: FromReflect + TypePath + GetTypeRegistration, D: FromReflect + TypePath + GetTypeRegistration, E: FromReflect + TypePath + GetTypeRegistration, F: FromReflect + TypePath + GetTypeRegistration, G: FromReflect + TypePath + GetTypeRegistration> FromReflect for (A, B, C, D, E, F, G)
fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl<A: FromReflect + TypePath + GetTypeRegistration, B: FromReflect + TypePath + GetTypeRegistration, C: FromReflect + TypePath + GetTypeRegistration, D: FromReflect + TypePath + GetTypeRegistration, E: FromReflect + TypePath + GetTypeRegistration, F: FromReflect + TypePath + GetTypeRegistration, G: FromReflect + TypePath + GetTypeRegistration, H: FromReflect + TypePath + GetTypeRegistration> FromReflect for (A, B, C, D, E, F, G, H)
impl<A: FromReflect + TypePath + GetTypeRegistration, B: FromReflect + TypePath + GetTypeRegistration, C: FromReflect + TypePath + GetTypeRegistration, D: FromReflect + TypePath + GetTypeRegistration, E: FromReflect + TypePath + GetTypeRegistration, F: FromReflect + TypePath + GetTypeRegistration, G: FromReflect + TypePath + GetTypeRegistration, H: FromReflect + TypePath + GetTypeRegistration> FromReflect for (A, B, C, D, E, F, G, H)
fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl<A: FromReflect + TypePath + GetTypeRegistration, B: FromReflect + TypePath + GetTypeRegistration, C: FromReflect + TypePath + GetTypeRegistration, D: FromReflect + TypePath + GetTypeRegistration, E: FromReflect + TypePath + GetTypeRegistration, F: FromReflect + TypePath + GetTypeRegistration, G: FromReflect + TypePath + GetTypeRegistration, H: FromReflect + TypePath + GetTypeRegistration, I: FromReflect + TypePath + GetTypeRegistration> FromReflect for (A, B, C, D, E, F, G, H, I)
impl<A: FromReflect + TypePath + GetTypeRegistration, B: FromReflect + TypePath + GetTypeRegistration, C: FromReflect + TypePath + GetTypeRegistration, D: FromReflect + TypePath + GetTypeRegistration, E: FromReflect + TypePath + GetTypeRegistration, F: FromReflect + TypePath + GetTypeRegistration, G: FromReflect + TypePath + GetTypeRegistration, H: FromReflect + TypePath + GetTypeRegistration, I: FromReflect + TypePath + GetTypeRegistration> FromReflect for (A, B, C, D, E, F, G, H, I)
fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl<A: FromReflect + TypePath + GetTypeRegistration, B: FromReflect + TypePath + GetTypeRegistration, C: FromReflect + TypePath + GetTypeRegistration, D: FromReflect + TypePath + GetTypeRegistration, E: FromReflect + TypePath + GetTypeRegistration, F: FromReflect + TypePath + GetTypeRegistration, G: FromReflect + TypePath + GetTypeRegistration, H: FromReflect + TypePath + GetTypeRegistration, I: FromReflect + TypePath + GetTypeRegistration, J: FromReflect + TypePath + GetTypeRegistration> FromReflect for (A, B, C, D, E, F, G, H, I, J)
impl<A: FromReflect + TypePath + GetTypeRegistration, B: FromReflect + TypePath + GetTypeRegistration, C: FromReflect + TypePath + GetTypeRegistration, D: FromReflect + TypePath + GetTypeRegistration, E: FromReflect + TypePath + GetTypeRegistration, F: FromReflect + TypePath + GetTypeRegistration, G: FromReflect + TypePath + GetTypeRegistration, H: FromReflect + TypePath + GetTypeRegistration, I: FromReflect + TypePath + GetTypeRegistration, J: FromReflect + TypePath + GetTypeRegistration> FromReflect for (A, B, C, D, E, F, G, H, I, J)
fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl<A: FromReflect + TypePath + GetTypeRegistration, B: FromReflect + TypePath + GetTypeRegistration, C: FromReflect + TypePath + GetTypeRegistration, D: FromReflect + TypePath + GetTypeRegistration, E: FromReflect + TypePath + GetTypeRegistration, F: FromReflect + TypePath + GetTypeRegistration, G: FromReflect + TypePath + GetTypeRegistration, H: FromReflect + TypePath + GetTypeRegistration, I: FromReflect + TypePath + GetTypeRegistration, J: FromReflect + TypePath + GetTypeRegistration, K: FromReflect + TypePath + GetTypeRegistration> FromReflect for (A, B, C, D, E, F, G, H, I, J, K)
impl<A: FromReflect + TypePath + GetTypeRegistration, B: FromReflect + TypePath + GetTypeRegistration, C: FromReflect + TypePath + GetTypeRegistration, D: FromReflect + TypePath + GetTypeRegistration, E: FromReflect + TypePath + GetTypeRegistration, F: FromReflect + TypePath + GetTypeRegistration, G: FromReflect + TypePath + GetTypeRegistration, H: FromReflect + TypePath + GetTypeRegistration, I: FromReflect + TypePath + GetTypeRegistration, J: FromReflect + TypePath + GetTypeRegistration, K: FromReflect + TypePath + GetTypeRegistration> FromReflect for (A, B, C, D, E, F, G, H, I, J, K)
fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl<A: FromReflect + TypePath + GetTypeRegistration, B: FromReflect + TypePath + GetTypeRegistration, C: FromReflect + TypePath + GetTypeRegistration, D: FromReflect + TypePath + GetTypeRegistration, E: FromReflect + TypePath + GetTypeRegistration, F: FromReflect + TypePath + GetTypeRegistration, G: FromReflect + TypePath + GetTypeRegistration, H: FromReflect + TypePath + GetTypeRegistration, I: FromReflect + TypePath + GetTypeRegistration, J: FromReflect + TypePath + GetTypeRegistration, K: FromReflect + TypePath + GetTypeRegistration, L: FromReflect + TypePath + GetTypeRegistration> FromReflect for (A, B, C, D, E, F, G, H, I, J, K, L)
impl<A: FromReflect + TypePath + GetTypeRegistration, B: FromReflect + TypePath + GetTypeRegistration, C: FromReflect + TypePath + GetTypeRegistration, D: FromReflect + TypePath + GetTypeRegistration, E: FromReflect + TypePath + GetTypeRegistration, F: FromReflect + TypePath + GetTypeRegistration, G: FromReflect + TypePath + GetTypeRegistration, H: FromReflect + TypePath + GetTypeRegistration, I: FromReflect + TypePath + GetTypeRegistration, J: FromReflect + TypePath + GetTypeRegistration, K: FromReflect + TypePath + GetTypeRegistration, L: FromReflect + TypePath + GetTypeRegistration> FromReflect for (A, B, C, D, E, F, G, H, I, J, K, L)
fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl<K, V> FromReflect for BTreeMap<K, V>where
K: FromReflect + TypePath + GetTypeRegistration + Eq + Ord,
V: FromReflect + TypePath + GetTypeRegistration,
impl<K, V> FromReflect for BTreeMap<K, V>where
K: FromReflect + TypePath + GetTypeRegistration + Eq + Ord,
V: FromReflect + TypePath + GetTypeRegistration,
fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl<K, V, S> FromReflect for HashMap<K, V, S>where
K: FromReflect + TypePath + GetTypeRegistration + Eq + Hash,
V: FromReflect + TypePath + GetTypeRegistration,
S: TypePath + BuildHasher + Default + Send + Sync,
impl<K, V, S> FromReflect for HashMap<K, V, S>where
K: FromReflect + TypePath + GetTypeRegistration + Eq + Hash,
V: FromReflect + TypePath + GetTypeRegistration,
S: TypePath + BuildHasher + Default + Send + Sync,
fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl<K, V, S> FromReflect for HashMap<K, V, S>where
K: FromReflect + TypePath + GetTypeRegistration + Eq + Hash,
V: FromReflect + TypePath + GetTypeRegistration,
S: TypePath + BuildHasher + Default + Send + Sync,
impl<K, V, S> FromReflect for HashMap<K, V, S>where
K: FromReflect + TypePath + GetTypeRegistration + Eq + Hash,
V: FromReflect + TypePath + GetTypeRegistration,
S: TypePath + BuildHasher + Default + Send + Sync,
fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl<T> FromReflect for Option<T>
impl<T> FromReflect for Option<T>
fn from_reflect(__param0: &dyn Reflect) -> Option<Self>
Source§impl<T> FromReflect for BinaryHeap<T>
impl<T> FromReflect for BinaryHeap<T>
fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl<T> FromReflect for BTreeSet<T>
impl<T> FromReflect for BTreeSet<T>
fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl<T> FromReflect for Arc<T>
impl<T> FromReflect for Arc<T>
fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl<T> FromReflect for Saturating<T>
impl<T> FromReflect for Saturating<T>
fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl<T> FromReflect for Wrapping<T>
impl<T> FromReflect for Wrapping<T>
fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl<T> FromReflect for Range<T>
impl<T> FromReflect for Range<T>
fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl<T> FromReflect for RangeFrom<T>
impl<T> FromReflect for RangeFrom<T>
fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl<T> FromReflect for RangeInclusive<T>
impl<T> FromReflect for RangeInclusive<T>
fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl<T> FromReflect for RangeTo<T>
impl<T> FromReflect for RangeTo<T>
fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl<T> FromReflect for RangeToInclusive<T>
impl<T> FromReflect for RangeToInclusive<T>
fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl<T, E> FromReflect for Result<T, E>where
Self: Any + Send + Sync,
T: TypePath + FromReflect + RegisterForReflection,
E: TypePath + FromReflect + RegisterForReflection,
impl<T, E> FromReflect for Result<T, E>where
Self: Any + Send + Sync,
T: TypePath + FromReflect + RegisterForReflection,
E: TypePath + FromReflect + RegisterForReflection,
fn from_reflect(__param0: &dyn Reflect) -> Option<Self>
Source§impl<T, S> FromReflect for HashSet<T, S>
impl<T, S> FromReflect for HashSet<T, S>
fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl<T, S> FromReflect for HashSet<T, S>
impl<T, S> FromReflect for HashSet<T, S>
fn from_reflect(reflect: &dyn Reflect) -> Option<Self>
Source§impl<T: Array + TypePath + Send + Sync> FromReflect for SmallVec<T>
Available on crate feature smallvec
only.
impl<T: Array + TypePath + Send + Sync> FromReflect for SmallVec<T>
smallvec
only.