Trait FromReflect

Source
pub trait FromReflect: Sized + Reflect {
    // Required method
    fn from_reflect(reflect: &(dyn PartialReflect + 'static)) -> 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 + 'static)) -> 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 + 'static), ) -> Option<&'static str>

Source§

impl FromReflect for &'static Location<'static>

Source§

fn from_reflect( reflect: &(dyn PartialReflect + 'static), ) -> Option<&'static Location<'static>>

Source§

impl FromReflect for &'static Path

Source§

fn from_reflect( reflect: &(dyn PartialReflect + 'static), ) -> Option<&'static Path>

Source§

impl FromReflect for Cow<'static, str>

Source§

fn from_reflect( reflect: &(dyn PartialReflect + 'static), ) -> Option<Cow<'static, str>>

Source§

impl FromReflect for Cow<'static, Path>

Source§

fn from_reflect( reflect: &(dyn PartialReflect + 'static), ) -> Option<Cow<'static, Path>>

Source§

impl FromReflect for SocketAddr

Source§

fn from_reflect(reflect: &(dyn PartialReflect + 'static)) -> Option<SocketAddr>

Source§

impl FromReflect for bool

Source§

fn from_reflect(reflect: &(dyn PartialReflect + 'static)) -> Option<bool>

Source§

impl FromReflect for char

Source§

fn from_reflect(reflect: &(dyn PartialReflect + 'static)) -> Option<char>

Source§

impl FromReflect for f32

Source§

fn from_reflect(reflect: &(dyn PartialReflect + 'static)) -> Option<f32>

Source§

impl FromReflect for f64

Source§

fn from_reflect(reflect: &(dyn PartialReflect + 'static)) -> Option<f64>

Source§

impl FromReflect for i8

Source§

fn from_reflect(reflect: &(dyn PartialReflect + 'static)) -> Option<i8>

Source§

impl FromReflect for i16

Source§

fn from_reflect(reflect: &(dyn PartialReflect + 'static)) -> Option<i16>

Source§

impl FromReflect for i32

Source§

fn from_reflect(reflect: &(dyn PartialReflect + 'static)) -> Option<i32>

Source§

impl FromReflect for i64

Source§

fn from_reflect(reflect: &(dyn PartialReflect + 'static)) -> Option<i64>

Source§

impl FromReflect for i128

Source§

fn from_reflect(reflect: &(dyn PartialReflect + 'static)) -> Option<i128>

Source§

impl FromReflect for isize

Source§

fn from_reflect(reflect: &(dyn PartialReflect + 'static)) -> Option<isize>

Source§

impl FromReflect for u8

Source§

fn from_reflect(reflect: &(dyn PartialReflect + 'static)) -> Option<u8>

Source§

impl FromReflect for u16

Source§

fn from_reflect(reflect: &(dyn PartialReflect + 'static)) -> Option<u16>

Source§

impl FromReflect for u32

Source§

fn from_reflect(reflect: &(dyn PartialReflect + 'static)) -> Option<u32>

Source§

impl FromReflect for u64

Source§

fn from_reflect(reflect: &(dyn PartialReflect + 'static)) -> Option<u64>

Source§

impl FromReflect for u128

Source§

fn from_reflect(reflect: &(dyn PartialReflect + 'static)) -> Option<u128>

Source§

impl FromReflect for ()

Source§

fn from_reflect(reflect: &(dyn PartialReflect + 'static)) -> Option<()>

Source§

impl FromReflect for usize

Source§

fn from_reflect(reflect: &(dyn PartialReflect + 'static)) -> Option<usize>

Source§

impl FromReflect for TypeId

Source§

fn from_reflect(reflect: &(dyn PartialReflect + 'static)) -> Option<TypeId>

Source§

impl FromReflect for NonZero<i8>

Source§

fn from_reflect(reflect: &(dyn PartialReflect + 'static)) -> Option<NonZero<i8>>

Source§

impl FromReflect for NonZero<i16>

Source§

fn from_reflect( reflect: &(dyn PartialReflect + 'static), ) -> Option<NonZero<i16>>

Source§

impl FromReflect for NonZero<i32>

Source§

fn from_reflect( reflect: &(dyn PartialReflect + 'static), ) -> Option<NonZero<i32>>

Source§

impl FromReflect for NonZero<i64>

Source§

fn from_reflect( reflect: &(dyn PartialReflect + 'static), ) -> Option<NonZero<i64>>

Source§

impl FromReflect for NonZero<i128>

Source§

fn from_reflect( reflect: &(dyn PartialReflect + 'static), ) -> Option<NonZero<i128>>

Source§

impl FromReflect for NonZero<isize>

Source§

fn from_reflect( reflect: &(dyn PartialReflect + 'static), ) -> Option<NonZero<isize>>

Source§

impl FromReflect for NonZero<u8>

Source§

fn from_reflect(reflect: &(dyn PartialReflect + 'static)) -> Option<NonZero<u8>>

Source§

impl FromReflect for NonZero<u16>

Source§

fn from_reflect( reflect: &(dyn PartialReflect + 'static), ) -> Option<NonZero<u16>>

Source§

impl FromReflect for NonZero<u32>

Source§

fn from_reflect( reflect: &(dyn PartialReflect + 'static), ) -> Option<NonZero<u32>>

Source§

impl FromReflect for NonZero<u64>

Source§

fn from_reflect( reflect: &(dyn PartialReflect + 'static), ) -> Option<NonZero<u64>>

Source§

impl FromReflect for NonZero<u128>

Source§

fn from_reflect( reflect: &(dyn PartialReflect + 'static), ) -> Option<NonZero<u128>>

Source§

impl FromReflect for NonZero<usize>

Source§

fn from_reflect( reflect: &(dyn PartialReflect + 'static), ) -> Option<NonZero<usize>>

Source§

impl FromReflect for RangeFull

Source§

fn from_reflect(reflect: &(dyn PartialReflect + 'static)) -> Option<RangeFull>

Source§

impl FromReflect for Duration

Source§

fn from_reflect(reflect: &(dyn PartialReflect + 'static)) -> Option<Duration>

Source§

impl FromReflect for OsString

Source§

fn from_reflect(reflect: &(dyn PartialReflect + 'static)) -> Option<OsString>

Source§

impl FromReflect for PathBuf

Source§

fn from_reflect(reflect: &(dyn PartialReflect + 'static)) -> Option<PathBuf>

Source§

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

Source§

fn from_reflect(reflect: &(dyn PartialReflect + 'static)) -> Option<(A,)>

Source§

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

Source§

fn from_reflect(reflect: &(dyn PartialReflect + 'static)) -> Option<(A, B)>

Source§

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

Source§

fn from_reflect(reflect: &(dyn PartialReflect + 'static)) -> Option<(A, B, C)>

Source§

impl<A, B, C, D> FromReflect for (A, B, C, D)

Source§

fn from_reflect( reflect: &(dyn PartialReflect + 'static), ) -> Option<(A, B, C, D)>

Source§

impl<A, B, C, D, E> FromReflect for (A, B, C, D, E)

Source§

fn from_reflect( reflect: &(dyn PartialReflect + 'static), ) -> Option<(A, B, C, D, E)>

Source§

impl<A, B, C, D, E, F> FromReflect for (A, B, C, D, E, F)

Source§

fn from_reflect( reflect: &(dyn PartialReflect + 'static), ) -> Option<(A, B, C, D, E, F)>

Source§

impl<A, B, C, D, E, F, G> FromReflect for (A, B, C, D, E, F, G)

Source§

impl<A, B, C, D, E, F, G, H> FromReflect for (A, B, C, D, E, F, G, H)

Source§

impl<A, B, C, D, E, F, G, H, I> FromReflect for (A, B, C, D, E, F, G, H, I)

Source§

impl<A, B, C, D, E, F, G, H, I, J> FromReflect for (A, B, C, D, E, F, G, H, I, J)

Source§

impl<A, B, C, D, E, F, G, H, I, J, K> FromReflect for (A, B, C, D, E, F, G, H, I, J, K)

Source§

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

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 + 'static), ) -> Option<BTreeMap<K, V>>

Source§

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

Source§

fn from_reflect( reflect: &(dyn PartialReflect + 'static), ) -> Option<HashMap<K, V, S>>

Source§

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

Source§

fn from_reflect( reflect: &(dyn PartialReflect + 'static), ) -> Option<Cow<'static, [T]>>

Source§

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

Source§

fn from_reflect(reflect: &(dyn PartialReflect + 'static)) -> Option<Bound<T>>

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 + 'static)) -> Option<Option<T>>

Source§

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

Source§

fn from_reflect(reflect: &(dyn PartialReflect + 'static)) -> Option<SmallVec<T>>

Source§

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

Source§

fn from_reflect( reflect: &(dyn PartialReflect + 'static), ) -> Option<BinaryHeap<T>>

Source§

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

Source§

fn from_reflect(reflect: &(dyn PartialReflect + 'static)) -> Option<BTreeSet<T>>

Source§

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

Source§

fn from_reflect(reflect: &(dyn PartialReflect + 'static)) -> Option<VecDeque<T>>

Source§

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

Source§

fn from_reflect( reflect: &(dyn PartialReflect + 'static), ) -> Option<Saturating<T>>

Source§

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

Source§

fn from_reflect(reflect: &(dyn PartialReflect + 'static)) -> Option<Wrapping<T>>

Source§

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

Source§

fn from_reflect(reflect: &(dyn PartialReflect + 'static)) -> Option<Range<T>>

Source§

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

Source§

fn from_reflect( reflect: &(dyn PartialReflect + 'static), ) -> Option<RangeFrom<T>>

Source§

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

Source§

fn from_reflect( reflect: &(dyn PartialReflect + 'static), ) -> Option<RangeInclusive<T>>

Source§

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

Source§

fn from_reflect(reflect: &(dyn PartialReflect + 'static)) -> Option<RangeTo<T>>

Source§

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

Source§

fn from_reflect( reflect: &(dyn PartialReflect + 'static), ) -> Option<RangeToInclusive<T>>

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 + 'static), ) -> Option<Result<T, E>>

Source§

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

Source§

fn from_reflect(reflect: &(dyn PartialReflect + 'static)) -> Option<[T; N]>

Source§

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

Source§

fn from_reflect( reflect: &(dyn PartialReflect + 'static), ) -> Option<HashSet<V, S>>

Implementors§

Source§

impl FromReflect for ButtonState

Source§

impl FromReflect for GamepadConnection

Source§

impl FromReflect for GamepadEvent

Source§

impl FromReflect for GamepadInput

Source§

impl FromReflect for GamepadRumbleRequest

Source§

impl FromReflect for RawGamepadEvent

Source§

impl FromReflect for Key

Source§

impl FromReflect for NativeKey

Source§

impl FromReflect for NativeKeyCode

Source§

impl FromReflect for MouseScrollUnit

Source§

impl FromReflect for ForceTouch

Source§

impl FromReflect for TouchPhase

Source§

impl FromReflect for CompassOctant

Source§

impl FromReflect for CompassQuadrant

Source§

impl FromReflect for EulerRot

Source§

impl FromReflect for GamepadAxis

Source§

impl FromReflect for GamepadButton

Source§

impl FromReflect for KeyCode

Source§

impl FromReflect for MouseButton

Source§

impl FromReflect for TimerMode

Source§

impl FromReflect for ComponentId

Source§

impl FromReflect for ComponentTicks

Source§

impl FromReflect for Tick

Source§

impl FromReflect for EntityGeneration

Source§

impl FromReflect for EntityHash

Source§

impl FromReflect for EntityHashSet

Source§

impl FromReflect for EntityRow

Source§

impl FromReflect for DefaultQueryFilters

Source§

impl FromReflect for Disabled

Source§

impl FromReflect for Internal

Source§

impl FromReflect for RemovedComponentEntity

Source§

impl FromReflect for ObservedBy

Source§

impl FromReflect for AxisSettings

Source§

impl FromReflect for ButtonAxisSettings

Source§

impl FromReflect for ButtonSettings

Source§

impl FromReflect for GamepadAxisChangedEvent

Source§

impl FromReflect for GamepadButtonChangedEvent

Source§

impl FromReflect for GamepadButtonStateChangedEvent

Source§

impl FromReflect for GamepadConnectionEvent

Source§

impl FromReflect for GamepadRumbleIntensity

Source§

impl FromReflect for RawGamepadAxisChangedEvent

Source§

impl FromReflect for RawGamepadButtonChangedEvent

Source§

impl FromReflect for DoubleTapGesture

Source§

impl FromReflect for PanGesture

Source§

impl FromReflect for PinchGesture

Source§

impl FromReflect for RotationGesture

Source§

impl FromReflect for KeyboardFocusLost

Source§

impl FromReflect for KeyboardInput

Source§

impl FromReflect for AccumulatedMouseMotion

Source§

impl FromReflect for AccumulatedMouseScroll

Source§

impl FromReflect for MouseButtonInput

Source§

impl FromReflect for MouseMotion

Source§

impl FromReflect for MouseWheel

Source§

impl FromReflect for Aabb2d

Source§

impl FromReflect for Aabb3d

Source§

impl FromReflect for AabbCast2d

Source§

impl FromReflect for AabbCast3d

Source§

impl FromReflect for BoundingCircle

Source§

impl FromReflect for BoundingCircleCast

Source§

impl FromReflect for BoundingSphere

Source§

impl FromReflect for BoundingSphereCast

Source§

impl FromReflect for RayCast2d

Source§

impl FromReflect for RayCast3d

Source§

impl FromReflect for Affine2

Source§

impl FromReflect for Affine3

Source§

impl FromReflect for Affine3A

Source§

impl FromReflect for AspectRatio

Source§

impl FromReflect for DAffine2

Source§

impl FromReflect for DAffine3

Source§

impl FromReflect for DMat2

Source§

impl FromReflect for DMat3

Source§

impl FromReflect for DMat4

Source§

impl FromReflect for DQuat

Source§

impl FromReflect for DVec2

Source§

impl FromReflect for DVec3

Source§

impl FromReflect for DVec4

Source§

impl FromReflect for Dir4

Source§

impl FromReflect for FloatOrd

Source§

impl FromReflect for I8Vec2

Source§

impl FromReflect for I8Vec3

Source§

impl FromReflect for I8Vec4

Source§

impl FromReflect for I16Vec2

Source§

impl FromReflect for I16Vec3

Source§

impl FromReflect for I16Vec4

Source§

impl FromReflect for I64Vec2

Source§

impl FromReflect for I64Vec3

Source§

impl FromReflect for I64Vec4

Source§

impl FromReflect for U8Vec2

Source§

impl FromReflect for U8Vec3

Source§

impl FromReflect for U8Vec4

Source§

impl FromReflect for U16Vec2

Source§

impl FromReflect for U16Vec3

Source§

impl FromReflect for U16Vec4

Source§

impl FromReflect for U64Vec2

Source§

impl FromReflect for U64Vec3

Source§

impl FromReflect for U64Vec4

Source§

impl FromReflect for AtomicBool

Source§

impl FromReflect for AtomicI8

Source§

impl FromReflect for AtomicI16

Source§

impl FromReflect for AtomicI32

Source§

impl FromReflect for AtomicI64

Source§

impl FromReflect for AtomicIsize

Source§

impl FromReflect for AtomicU8

Source§

impl FromReflect for AtomicU16

Source§

impl FromReflect for AtomicU32

Source§

impl FromReflect for AtomicU64

Source§

impl FromReflect for AtomicUsize

Source§

impl FromReflect for Instant

Source§

impl FromReflect for Stopwatch

Source§

impl FromReflect for Add

Source§

impl FromReflect for Annulus

Source§

impl FromReflect for Arc2d

Source§

impl FromReflect for BVec2

Source§

impl FromReflect for BVec3

Source§

impl FromReflect for BVec3A

Source§

impl FromReflect for BVec4

Source§

impl FromReflect for BVec4A

Source§

impl FromReflect for Capsule2d

Source§

impl FromReflect for Capsule3d

Source§

impl FromReflect for ChildOf

Source§

impl FromReflect for Children

Source§

impl FromReflect for Circle

Source§

impl FromReflect for CircularSector

Source§

impl FromReflect for CircularSegment

Source§

impl FromReflect for Cone

Source§

impl FromReflect for ConicalFrustum

Source§

impl FromReflect for ConvexPolygon

Source§

impl FromReflect for Cuboid

Source§

impl FromReflect for Cylinder

Source§

impl FromReflect for Despawn

Source§

impl FromReflect for Dir2

Source§

impl FromReflect for Dir3

Source§

impl FromReflect for Dir3A

Source§

impl FromReflect for Ellipse

Source§

impl FromReflect for Entity

Source§

impl FromReflect for Fixed

Source§

impl FromReflect for Gamepad

Source§

impl FromReflect for GamepadSettings

Source§

impl FromReflect for GlobalTransform

Source§

impl FromReflect for IRect

Source§

impl FromReflect for IVec2

Source§

impl FromReflect for IVec3

Source§

impl FromReflect for IVec4

Source§

impl FromReflect for InfinitePlane3d

Source§

impl FromReflect for Insert

Source§

impl FromReflect for Isometry2d

Source§

impl FromReflect for Isometry3d

Source§

impl FromReflect for Line2d

Source§

impl FromReflect for Line3d

Source§

impl FromReflect for Mat2

Source§

impl FromReflect for Mat3

Source§

impl FromReflect for Mat3A

Source§

impl FromReflect for Mat4

Source§

impl FromReflect for Name

Source§

impl FromReflect for Plane2d

Source§

impl FromReflect for Plane3d

Source§

impl FromReflect for Polygon

Source§

impl FromReflect for Polyline2d

Source§

impl FromReflect for Polyline3d

Source§

impl FromReflect for Quat

Source§

impl FromReflect for Ray2d

Source§

impl FromReflect for Ray3d

Source§

impl FromReflect for Real

Source§

impl FromReflect for Rect

Source§

impl FromReflect for Rectangle

Source§

impl FromReflect for RegularPolygon

Source§

impl FromReflect for Remove

Source§

impl FromReflect for Replace

Source§

impl FromReflect for Rhombus

Source§

impl FromReflect for Rot2

Source§

impl FromReflect for Segment2d

Source§

impl FromReflect for Segment3d

Source§

impl FromReflect for Sphere

Source§

impl FromReflect for String

Source§

impl FromReflect for Tetrahedron

Source§

impl FromReflect for Timer

Source§

impl FromReflect for Torus

Source§

impl FromReflect for TouchInput

Source§

impl FromReflect for Transform

Source§

impl FromReflect for TransformTreeChanged

Source§

impl FromReflect for Triangle2d

Source§

impl FromReflect for Triangle3d

Source§

impl FromReflect for URect

Source§

impl FromReflect for UVec2

Source§

impl FromReflect for UVec3

Source§

impl FromReflect for UVec4

Source§

impl FromReflect for Vec2

Source§

impl FromReflect for Vec3

Source§

impl FromReflect for Vec3A

Source§

impl FromReflect for Vec4

Source§

impl FromReflect for Virtual

Source§

impl<C> FromReflect for Inherited<C>
where C: Component + Clone + PartialEq + TypePath + FromReflect + MaybeTyped + RegisterForReflection, Inherited<C>: Any + Send + Sync,

Source§

impl<C> FromReflect for Propagate<C>
where C: Component + Clone + PartialEq + TypePath + FromReflect + MaybeTyped + RegisterForReflection, Propagate<C>: Any + Send + Sync,

Source§

impl<C> FromReflect for PropagateOver<C>
where PropagateOver<C>: Any + Send + Sync, C: TypePath, PhantomData<fn() -> C>: FromReflect + TypePath + MaybeTyped + RegisterForReflection,

Source§

impl<C> FromReflect for PropagateStop<C>
where PropagateStop<C>: Any + Send + Sync, C: TypePath, PhantomData<fn() -> C>: FromReflect + TypePath + MaybeTyped + RegisterForReflection,

Source§

impl<E> FromReflect for Messages<E>
where E: Message + TypePath, Messages<E>: Any + Send + Sync, MessageSequence<E>: FromReflect + TypePath + MaybeTyped + RegisterForReflection,

Source§

impl<K, V, S> FromReflect for bevy::platform::collections::HashMap<K, V, S>

Source§

impl<M> FromReflect for MessageId<M>
where M: Message + TypePath, MessageId<M>: Any + Send + Sync,

Source§

impl<P> FromReflect for LinearSpline<P>
where P: VectorSpace + TypePath, LinearSpline<P>: Any + Send + Sync, Vec<P>: FromReflect + TypePath + MaybeTyped + RegisterForReflection,

Source§

impl<P> FromReflect for CubicBSpline<P>
where P: VectorSpace + TypePath, CubicBSpline<P>: Any + Send + Sync, Vec<P>: FromReflect + TypePath + MaybeTyped + RegisterForReflection,

Source§

impl<P> FromReflect for CubicBezier<P>
where P: VectorSpace + TypePath, CubicBezier<P>: Any + Send + Sync, Vec<[P; 4]>: FromReflect + TypePath + MaybeTyped + RegisterForReflection,

Source§

impl<P> FromReflect for CubicCardinalSpline<P>
where P: VectorSpace + TypePath, CubicCardinalSpline<P>: Any + Send + Sync, Vec<P>: FromReflect + TypePath + MaybeTyped + RegisterForReflection,

Source§

impl<P> FromReflect for CubicCurve<P>
where P: VectorSpace + TypePath, CubicCurve<P>: Any + Send + Sync, Vec<CubicSegment<P>>: FromReflect + TypePath + MaybeTyped + RegisterForReflection,

Source§

impl<P> FromReflect for CubicHermite<P>
where P: VectorSpace + TypePath, CubicHermite<P>: Any + Send + Sync, Vec<(P, P)>: FromReflect + TypePath + MaybeTyped + RegisterForReflection,

Source§

impl<P> FromReflect for CubicNurbs<P>
where P: VectorSpace + TypePath, CubicNurbs<P>: Any + Send + Sync, Vec<P>: FromReflect + TypePath + MaybeTyped + RegisterForReflection,

Source§

impl<P> FromReflect for CubicSegment<P>
where P: VectorSpace + TypePath, CubicSegment<P>: Any + Send + Sync, [P; 4]: FromReflect + TypePath + MaybeTyped + RegisterForReflection,

Source§

impl<P> FromReflect for RationalCurve<P>
where P: VectorSpace + TypePath, RationalCurve<P>: Any + Send + Sync, Vec<RationalSegment<P>>: FromReflect + TypePath + MaybeTyped + RegisterForReflection,

Source§

impl<P> FromReflect for RationalSegment<P>
where P: VectorSpace + TypePath, RationalSegment<P>: Any + Send + Sync, [P; 4]: FromReflect + TypePath + MaybeTyped + RegisterForReflection,

Source§

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

Source§

impl<T> FromReflect for WithDerivative<T>
where WithDerivative<T>: Any + Send + Sync, T: HasTangent + TypePath + FromReflect + MaybeTyped + RegisterForReflection, <T as HasTangent>::Tangent: FromReflect + TypePath + MaybeTyped + RegisterForReflection,

Source§

impl<T> FromReflect for WithTwoDerivatives<T>
where WithTwoDerivatives<T>: Any + Send + Sync, T: HasTangent + TypePath + FromReflect + MaybeTyped + RegisterForReflection, <T as HasTangent>::Tangent: FromReflect + TypePath + MaybeTyped + RegisterForReflection, <<T as HasTangent>::Tangent as HasTangent>::Tangent: FromReflect + TypePath + MaybeTyped + RegisterForReflection,

Source§

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

Source§

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

Source§

impl<T> FromReflect for ButtonInput<T>
where T: Clone + Eq + Hash + Send + Sync + 'static + TypePath, ButtonInput<T>: Any + Send + Sync, HashSet<T>: FromReflect + TypePath + MaybeTyped + RegisterForReflection,

Source§

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

Source§

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

Source§

impl<V> FromReflect for EntityHashMap<V>
where EntityHashMap<V>: Any + Send + Sync, V: TypePath, HashMap<Entity, V, EntityHash>: FromReflect + TypePath + MaybeTyped + RegisterForReflection,

Source§

impl<V> FromReflect for EntityIndexMap<V>
where EntityIndexMap<V>: Any + Send + Sync, V: TypePath, IndexMap<Entity, V, EntityHash>: FromReflect + TypePath + MaybeTyped + RegisterForReflection,

Source§

impl<V, S> FromReflect for bevy::platform::collections::HashSet<V, S>

Source§

impl<V, W> FromReflect for Sum<V, W>
where Sum<V, W>: Any + Send + Sync, V: TypePath + FromReflect + MaybeTyped + RegisterForReflection, W: TypePath + FromReflect + MaybeTyped + RegisterForReflection,