bevy_reflect

Trait FromReflect

Source
pub trait FromReflect: Reflect + Sized {
    // Required method
    fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>;

    // Provided method
    fn take_from_reflect(
        reflect: Box<dyn PartialReflect>,
    ) -> Result<Self, Box<dyn PartialReflect>> { ... }
}
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§

Source

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Constructs a concrete instance of Self from a reflected value.

Provided Methods§

Source

fn take_from_reflect( reflect: Box<dyn PartialReflect>, ) -> Result<Self, Box<dyn PartialReflect>>

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

Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl FromReflect for &'static Path

Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl FromReflect for EulerRot
where EulerRot: Any + Send + Sync,

Available on crate feature glam only.
Source§

fn from_reflect(__param0: &dyn PartialReflect) -> Option<Self>

Source§

impl FromReflect for Cow<'static, str>

Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl FromReflect for Cow<'static, Path>

Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl FromReflect for bool
where bool: Any + Send + Sync,

Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl FromReflect for char
where char: Any + Send + Sync,

Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl FromReflect for f32
where f32: Any + Send + Sync,

Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl FromReflect for f64
where f64: Any + Send + Sync,

Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl FromReflect for i8
where i8: Any + Send + Sync,

Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl FromReflect for i16
where i16: Any + Send + Sync,

Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl FromReflect for i32
where i32: Any + Send + Sync,

Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl FromReflect for i64
where i64: Any + Send + Sync,

Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl FromReflect for i128
where i128: Any + Send + Sync,

Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl FromReflect for isize
where isize: Any + Send + Sync,

Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl FromReflect for u8
where u8: Any + Send + Sync,

Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl FromReflect for u16
where u16: Any + Send + Sync,

Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl FromReflect for u32
where u32: Any + Send + Sync,

Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl FromReflect for u64
where u64: Any + Send + Sync,

Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl FromReflect for u128
where u128: Any + Send + Sync,

Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl FromReflect for ()

Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl FromReflect for usize
where usize: Any + Send + Sync,

Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl FromReflect for BVec2
where BVec2: Any + Send + Sync, bool: FromReflect + TypePath + MaybeTyped + RegisterForReflection,

Available on crate feature glam only.
Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl FromReflect for BVec3
where BVec3: Any + Send + Sync, bool: FromReflect + TypePath + MaybeTyped + RegisterForReflection,

Available on crate feature glam only.
Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl FromReflect for BVec4
where BVec4: Any + Send + Sync, bool: FromReflect + TypePath + MaybeTyped + RegisterForReflection,

Available on crate feature glam only.
Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl FromReflect for BVec3A
where BVec3A: Any + Send + Sync,

Available on crate feature glam only.
Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl FromReflect for BVec4A
where BVec4A: Any + Send + Sync,

Available on crate feature glam only.
Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl FromReflect for Affine2
where Affine2: Any + Send + Sync, Mat2: FromReflect + TypePath + MaybeTyped + RegisterForReflection, Vec2: FromReflect + TypePath + MaybeTyped + RegisterForReflection,

Available on crate feature glam only.
Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl FromReflect for Affine3A
where Affine3A: Any + Send + Sync, Mat3A: FromReflect + TypePath + MaybeTyped + RegisterForReflection, Vec3A: FromReflect + TypePath + MaybeTyped + RegisterForReflection,

Available on crate feature glam only.
Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl FromReflect for Mat3
where Mat3: Any + Send + Sync, Vec3: FromReflect + TypePath + MaybeTyped + RegisterForReflection,

Available on crate feature glam only.
Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl FromReflect for Mat2
where Mat2: Any + Send + Sync, Vec2: FromReflect + TypePath + MaybeTyped + RegisterForReflection,

Available on crate feature glam only.
Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl FromReflect for Mat3A
where Mat3A: Any + Send + Sync, Vec3A: FromReflect + TypePath + MaybeTyped + RegisterForReflection,

Available on crate feature glam only.
Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl FromReflect for Mat4
where Mat4: Any + Send + Sync, Vec4: FromReflect + TypePath + MaybeTyped + RegisterForReflection,

Available on crate feature glam only.
Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl FromReflect for Quat
where Quat: Any + Send + Sync, f32: FromReflect + TypePath + MaybeTyped + RegisterForReflection,

Available on crate feature glam only.
Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl FromReflect for Vec3A
where Vec3A: Any + Send + Sync, f32: FromReflect + TypePath + MaybeTyped + RegisterForReflection,

Available on crate feature glam only.
Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl FromReflect for Vec4
where Vec4: Any + Send + Sync, f32: FromReflect + TypePath + MaybeTyped + RegisterForReflection,

Available on crate feature glam only.
Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl FromReflect for Vec2
where Vec2: Any + Send + Sync, f32: FromReflect + TypePath + MaybeTyped + RegisterForReflection,

Available on crate feature glam only.
Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl FromReflect for Vec3
where Vec3: Any + Send + Sync, f32: FromReflect + TypePath + MaybeTyped + RegisterForReflection,

Available on crate feature glam only.
Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl FromReflect for DAffine2
where DAffine2: Any + Send + Sync, DMat2: FromReflect + TypePath + MaybeTyped + RegisterForReflection, DVec2: FromReflect + TypePath + MaybeTyped + RegisterForReflection,

Available on crate feature glam only.
Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl FromReflect for DAffine3
where DAffine3: Any + Send + Sync, DMat3: FromReflect + TypePath + MaybeTyped + RegisterForReflection, DVec3: FromReflect + TypePath + MaybeTyped + RegisterForReflection,

Available on crate feature glam only.
Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl FromReflect for DMat2
where DMat2: Any + Send + Sync, DVec2: FromReflect + TypePath + MaybeTyped + RegisterForReflection,

Available on crate feature glam only.
Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl FromReflect for DMat3
where DMat3: Any + Send + Sync, DVec3: FromReflect + TypePath + MaybeTyped + RegisterForReflection,

Available on crate feature glam only.
Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl FromReflect for DMat4
where DMat4: Any + Send + Sync, DVec4: FromReflect + TypePath + MaybeTyped + RegisterForReflection,

Available on crate feature glam only.
Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl FromReflect for DQuat
where DQuat: Any + Send + Sync, f64: FromReflect + TypePath + MaybeTyped + RegisterForReflection,

Available on crate feature glam only.
Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl FromReflect for DVec2
where DVec2: Any + Send + Sync, f64: FromReflect + TypePath + MaybeTyped + RegisterForReflection,

Available on crate feature glam only.
Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl FromReflect for DVec3
where DVec3: Any + Send + Sync, f64: FromReflect + TypePath + MaybeTyped + RegisterForReflection,

Available on crate feature glam only.
Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl FromReflect for DVec4
where DVec4: Any + Send + Sync, f64: FromReflect + TypePath + MaybeTyped + RegisterForReflection,

Available on crate feature glam only.
Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl FromReflect for IVec2
where IVec2: Any + Send + Sync, i32: FromReflect + TypePath + MaybeTyped + RegisterForReflection,

Available on crate feature glam only.
Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl FromReflect for IVec3
where IVec3: Any + Send + Sync, i32: FromReflect + TypePath + MaybeTyped + RegisterForReflection,

Available on crate feature glam only.
Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl FromReflect for IVec4
where IVec4: Any + Send + Sync, i32: FromReflect + TypePath + MaybeTyped + RegisterForReflection,

Available on crate feature glam only.
Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl FromReflect for I64Vec2
where I64Vec2: Any + Send + Sync, i64: FromReflect + TypePath + MaybeTyped + RegisterForReflection,

Available on crate feature glam only.
Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl FromReflect for I64Vec3
where I64Vec3: Any + Send + Sync, i64: FromReflect + TypePath + MaybeTyped + RegisterForReflection,

Available on crate feature glam only.
Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl FromReflect for I64Vec4
where I64Vec4: Any + Send + Sync, i64: FromReflect + TypePath + MaybeTyped + RegisterForReflection,

Available on crate feature glam only.
Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl FromReflect for UVec2
where UVec2: Any + Send + Sync, u32: FromReflect + TypePath + MaybeTyped + RegisterForReflection,

Available on crate feature glam only.
Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl FromReflect for UVec3
where UVec3: Any + Send + Sync, u32: FromReflect + TypePath + MaybeTyped + RegisterForReflection,

Available on crate feature glam only.
Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl FromReflect for UVec4
where UVec4: Any + Send + Sync, u32: FromReflect + TypePath + MaybeTyped + RegisterForReflection,

Available on crate feature glam only.
Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl FromReflect for U64Vec2
where U64Vec2: Any + Send + Sync, u64: FromReflect + TypePath + MaybeTyped + RegisterForReflection,

Available on crate feature glam only.
Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl FromReflect for U64Vec3
where U64Vec3: Any + Send + Sync, u64: FromReflect + TypePath + MaybeTyped + RegisterForReflection,

Available on crate feature glam only.
Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl FromReflect for U64Vec4
where U64Vec4: Any + Send + Sync, u64: FromReflect + TypePath + MaybeTyped + RegisterForReflection,

Available on crate feature glam only.
Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl FromReflect for SmolStr
where SmolStr: Any + Send + Sync,

Available on crate feature smol_str only.
Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl FromReflect for Uuid
where Uuid: Any + Send + Sync,

Available on crate feature uuid only.
Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl FromReflect for String
where String: Any + Send + Sync,

Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl FromReflect for TypeId
where TypeId: Any + Send + Sync,

Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl FromReflect for RangeFull
where RangeFull: Any + Send + Sync,

Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl FromReflect for AtomicBool
where AtomicBool: Any + Send + Sync,

Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl FromReflect for AtomicI8
where AtomicI8: Any + Send + Sync,

Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl FromReflect for AtomicI16
where AtomicI16: Any + Send + Sync,

Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl FromReflect for AtomicI32
where AtomicI32: Any + Send + Sync,

Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl FromReflect for AtomicI64
where AtomicI64: Any + Send + Sync,

Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl FromReflect for AtomicIsize
where AtomicIsize: Any + Send + Sync,

Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl FromReflect for AtomicU8
where AtomicU8: Any + Send + Sync,

Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl FromReflect for AtomicU16
where AtomicU16: Any + Send + Sync,

Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl FromReflect for AtomicU32
where AtomicU32: Any + Send + Sync,

Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl FromReflect for AtomicU64
where AtomicU64: Any + Send + Sync,

Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl FromReflect for AtomicUsize
where AtomicUsize: Any + Send + Sync,

Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl FromReflect for Duration
where Duration: Any + Send + Sync,

Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl FromReflect for OsString
where OsString: Any + Send + Sync,

Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl FromReflect for PathBuf
where PathBuf: Any + Send + Sync,

Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl FromReflect for Instant
where Instant: Any + Send + Sync,

Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl FromReflect for NonZeroI8
where NonZeroI8: Any + Send + Sync,

Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl FromReflect for NonZeroI16
where NonZeroI16: Any + Send + Sync,

Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl FromReflect for NonZeroI32
where NonZeroI32: Any + Send + Sync,

Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl FromReflect for NonZeroI64
where NonZeroI64: Any + Send + Sync,

Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl FromReflect for NonZeroI128
where NonZeroI128: Any + Send + Sync,

Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl FromReflect for NonZeroIsize

Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl FromReflect for NonZeroU8
where NonZeroU8: Any + Send + Sync,

Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl FromReflect for NonZeroU16
where NonZeroU16: Any + Send + Sync,

Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl FromReflect for NonZeroU32
where NonZeroU32: Any + Send + Sync,

Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl FromReflect for NonZeroU64
where NonZeroU64: Any + Send + Sync,

Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl FromReflect for NonZeroU128
where NonZeroU128: Any + Send + Sync,

Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl FromReflect for NonZeroUsize

Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl<A: FromReflect + MaybeTyped + TypePath + GetTypeRegistration> FromReflect for (A,)

Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl<A: FromReflect + MaybeTyped + TypePath + GetTypeRegistration, B: FromReflect + MaybeTyped + TypePath + GetTypeRegistration> FromReflect for (A, B)

Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl<A: FromReflect + MaybeTyped + TypePath + GetTypeRegistration, B: FromReflect + MaybeTyped + TypePath + GetTypeRegistration, C: FromReflect + MaybeTyped + TypePath + GetTypeRegistration> FromReflect for (A, B, C)

Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl<A: FromReflect + MaybeTyped + TypePath + GetTypeRegistration, B: FromReflect + MaybeTyped + TypePath + GetTypeRegistration, C: FromReflect + MaybeTyped + TypePath + GetTypeRegistration, D: FromReflect + MaybeTyped + TypePath + GetTypeRegistration> FromReflect for (A, B, C, D)

Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl<A: FromReflect + MaybeTyped + TypePath + GetTypeRegistration, B: FromReflect + MaybeTyped + TypePath + GetTypeRegistration, C: FromReflect + MaybeTyped + TypePath + GetTypeRegistration, D: FromReflect + MaybeTyped + TypePath + GetTypeRegistration, E: FromReflect + MaybeTyped + TypePath + GetTypeRegistration> FromReflect for (A, B, C, D, E)

Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl<A: FromReflect + MaybeTyped + TypePath + GetTypeRegistration, B: FromReflect + MaybeTyped + TypePath + GetTypeRegistration, C: FromReflect + MaybeTyped + TypePath + GetTypeRegistration, D: FromReflect + MaybeTyped + TypePath + GetTypeRegistration, E: FromReflect + MaybeTyped + TypePath + GetTypeRegistration, F: FromReflect + MaybeTyped + TypePath + GetTypeRegistration> FromReflect for (A, B, C, D, E, F)

Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl<A: FromReflect + MaybeTyped + TypePath + GetTypeRegistration, B: FromReflect + MaybeTyped + TypePath + GetTypeRegistration, C: FromReflect + MaybeTyped + TypePath + GetTypeRegistration, D: FromReflect + MaybeTyped + TypePath + GetTypeRegistration, E: FromReflect + MaybeTyped + TypePath + GetTypeRegistration, F: FromReflect + MaybeTyped + TypePath + GetTypeRegistration, G: FromReflect + MaybeTyped + TypePath + GetTypeRegistration> FromReflect for (A, B, C, D, E, F, G)

Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl<A: FromReflect + MaybeTyped + TypePath + GetTypeRegistration, B: FromReflect + MaybeTyped + TypePath + GetTypeRegistration, C: FromReflect + MaybeTyped + TypePath + GetTypeRegistration, D: FromReflect + MaybeTyped + TypePath + GetTypeRegistration, E: FromReflect + MaybeTyped + TypePath + GetTypeRegistration, F: FromReflect + MaybeTyped + TypePath + GetTypeRegistration, G: FromReflect + MaybeTyped + TypePath + GetTypeRegistration, H: FromReflect + MaybeTyped + TypePath + GetTypeRegistration> FromReflect for (A, B, C, D, E, F, G, H)

Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl<A: FromReflect + MaybeTyped + TypePath + GetTypeRegistration, B: FromReflect + MaybeTyped + TypePath + GetTypeRegistration, C: FromReflect + MaybeTyped + TypePath + GetTypeRegistration, D: FromReflect + MaybeTyped + TypePath + GetTypeRegistration, E: FromReflect + MaybeTyped + TypePath + GetTypeRegistration, F: FromReflect + MaybeTyped + TypePath + GetTypeRegistration, G: FromReflect + MaybeTyped + TypePath + GetTypeRegistration, H: FromReflect + MaybeTyped + TypePath + GetTypeRegistration, I: FromReflect + MaybeTyped + TypePath + GetTypeRegistration> FromReflect for (A, B, C, D, E, F, G, H, I)

Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl<A: FromReflect + MaybeTyped + TypePath + GetTypeRegistration, B: FromReflect + MaybeTyped + TypePath + GetTypeRegistration, C: FromReflect + MaybeTyped + TypePath + GetTypeRegistration, D: FromReflect + MaybeTyped + TypePath + GetTypeRegistration, E: FromReflect + MaybeTyped + TypePath + GetTypeRegistration, F: FromReflect + MaybeTyped + TypePath + GetTypeRegistration, G: FromReflect + MaybeTyped + TypePath + GetTypeRegistration, H: FromReflect + MaybeTyped + TypePath + GetTypeRegistration, I: FromReflect + MaybeTyped + TypePath + GetTypeRegistration, J: FromReflect + MaybeTyped + TypePath + GetTypeRegistration> FromReflect for (A, B, C, D, E, F, G, H, I, J)

Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl<A: FromReflect + MaybeTyped + TypePath + GetTypeRegistration, B: FromReflect + MaybeTyped + TypePath + GetTypeRegistration, C: FromReflect + MaybeTyped + TypePath + GetTypeRegistration, D: FromReflect + MaybeTyped + TypePath + GetTypeRegistration, E: FromReflect + MaybeTyped + TypePath + GetTypeRegistration, F: FromReflect + MaybeTyped + TypePath + GetTypeRegistration, G: FromReflect + MaybeTyped + TypePath + GetTypeRegistration, H: FromReflect + MaybeTyped + TypePath + GetTypeRegistration, I: FromReflect + MaybeTyped + TypePath + GetTypeRegistration, J: FromReflect + MaybeTyped + TypePath + GetTypeRegistration, K: FromReflect + MaybeTyped + TypePath + GetTypeRegistration> FromReflect for (A, B, C, D, E, F, G, H, I, J, K)

Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl<A: FromReflect + MaybeTyped + TypePath + GetTypeRegistration, B: FromReflect + MaybeTyped + TypePath + GetTypeRegistration, C: FromReflect + MaybeTyped + TypePath + GetTypeRegistration, D: FromReflect + MaybeTyped + TypePath + GetTypeRegistration, E: FromReflect + MaybeTyped + TypePath + GetTypeRegistration, F: FromReflect + MaybeTyped + TypePath + GetTypeRegistration, G: FromReflect + MaybeTyped + TypePath + GetTypeRegistration, H: FromReflect + MaybeTyped + TypePath + GetTypeRegistration, I: FromReflect + MaybeTyped + TypePath + GetTypeRegistration, J: FromReflect + MaybeTyped + TypePath + GetTypeRegistration, K: FromReflect + MaybeTyped + TypePath + GetTypeRegistration, L: FromReflect + MaybeTyped + TypePath + GetTypeRegistration> FromReflect for (A, B, C, D, E, F, G, H, I, J, K, L)

Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl<K, V> FromReflect for BTreeMap<K, V>
where K: FromReflect + MaybeTyped + TypePath + GetTypeRegistration + Eq + Ord, V: FromReflect + MaybeTyped + TypePath + GetTypeRegistration,

Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl<K, V, S> FromReflect for HashMap<K, V, S>

Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl<K, V, S> FromReflect for HashMap<K, V, S>

Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl<T> FromReflect for Bound<T>
where Bound<T>: Any + Send + Sync, T: TypePath + Clone + Send + Sync,

Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl<T> FromReflect for Option<T>
where Option<T>: Any + Send + Sync, T: TypePath + FromReflect + MaybeTyped + RegisterForReflection,

Source§

fn from_reflect(__param0: &dyn PartialReflect) -> Option<Self>

Source§

impl<T> FromReflect for BinaryHeap<T>
where BinaryHeap<T>: Any + Send + Sync, T: TypePath + Clone,

Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl<T> FromReflect for BTreeSet<T>
where BTreeSet<T>: Any + Send + Sync, T: TypePath + Ord + Eq + Clone + Send + Sync,

Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl<T> FromReflect for Arc<T>
where Arc<T>: Any + Send + Sync, T: TypePath + Send + Sync + ?Sized,

Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl<T> FromReflect for Saturating<T>
where Saturating<T>: Any + Send + Sync, T: TypePath + Clone + Send + Sync,

Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl<T> FromReflect for Wrapping<T>
where Wrapping<T>: Any + Send + Sync, T: TypePath + Clone + Send + Sync,

Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl<T> FromReflect for Range<T>
where Range<T>: Any + Send + Sync, T: TypePath + Clone + Send + Sync,

Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl<T> FromReflect for RangeFrom<T>
where RangeFrom<T>: Any + Send + Sync, T: TypePath + Clone + Send + Sync,

Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl<T> FromReflect for RangeInclusive<T>
where RangeInclusive<T>: Any + Send + Sync, T: TypePath + Clone + Send + Sync,

Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl<T> FromReflect for RangeTo<T>
where RangeTo<T>: Any + Send + Sync, T: TypePath + Clone + Send + Sync,

Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl<T> FromReflect for RangeToInclusive<T>
where RangeToInclusive<T>: Any + Send + Sync, T: TypePath + Clone + Send + Sync,

Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl<T, E> FromReflect for Result<T, E>
where Result<T, E>: Any + Send + Sync, T: TypePath + FromReflect + MaybeTyped + RegisterForReflection, E: TypePath + FromReflect + MaybeTyped + RegisterForReflection,

Source§

fn from_reflect(__param0: &dyn PartialReflect) -> Option<Self>

Source§

impl<T: SmallArray + TypePath + Send + Sync> FromReflect for SmallVec<T>
where T::Item: FromReflect + MaybeTyped + TypePath,

Available on crate feature smallvec only.
Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl<T: FromReflect + MaybeTyped + Clone + TypePath + GetTypeRegistration> FromReflect for Cow<'static, [T]>

Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl<T: FromReflect + MaybeTyped + TypePath + GetTypeRegistration> FromReflect for VecDeque<T>

Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl<T: FromReflect + MaybeTyped + TypePath + GetTypeRegistration> FromReflect for Vec<T>

Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl<T: FromReflect + MaybeTyped + TypePath + GetTypeRegistration, const N: usize> FromReflect for [T; N]

Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl<V, S> FromReflect for HashSet<V, S>

Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Source§

impl<V, S> FromReflect for HashSet<V, S>

Source§

fn from_reflect(reflect: &dyn PartialReflect) -> Option<Self>

Implementors§