bevy_reflect

Trait FromReflect

Source
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§

Source

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

Constructs a concrete instance of Self from a reflected value.

Provided Methods§

Source

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

Source§

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

Source§

impl FromReflect for &'static Path

Source§

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

Source§

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

Available on crate feature glam only.
Source§

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

Source§

impl FromReflect for Cow<'static, str>

Source§

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

Source§

impl FromReflect for Cow<'static, Path>

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

impl FromReflect for ()

Source§

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

Source§

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

Source§

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

Source§

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

Available on crate feature glam only.
Source§

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

Source§

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

Available on crate feature glam only.
Source§

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

Source§

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

Available on crate feature glam only.
Source§

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

Source§

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

Available on crate feature glam only.
Source§

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

Source§

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

Available on crate feature glam only.
Source§

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

Source§

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

Available on crate feature glam only.
Source§

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

Source§

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

Available on crate feature glam only.
Source§

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

Source§

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

Available on crate feature glam only.
Source§

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

Source§

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

Available on crate feature glam only.
Source§

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

Source§

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

Available on crate feature glam only.
Source§

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

Source§

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

Available on crate feature glam only.
Source§

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

Source§

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

Available on crate feature glam only.
Source§

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

Source§

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

Available on crate feature glam only.
Source§

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

Source§

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

Available on crate feature glam only.
Source§

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

Source§

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

Available on crate feature glam only.
Source§

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

Source§

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

Available on crate feature glam only.
Source§

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

Source§

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

Available on crate feature glam only.
Source§

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

Source§

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

Available on crate feature glam only.
Source§

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

Source§

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

Available on crate feature glam only.
Source§

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

Source§

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

Available on crate feature glam only.
Source§

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

Source§

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

Available on crate feature glam only.
Source§

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

Source§

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

Available on crate feature glam only.
Source§

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

Source§

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

Available on crate feature glam only.
Source§

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

Source§

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

Available on crate feature glam only.
Source§

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

Source§

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

Available on crate feature glam only.
Source§

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

Source§

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

Available on crate feature glam only.
Source§

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

Source§

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

Available on crate feature glam only.
Source§

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

Source§

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

Available on crate feature glam only.
Source§

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

Source§

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

Available on crate feature glam only.
Source§

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

Source§

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

Available on crate feature glam only.
Source§

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

Source§

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

Available on crate feature glam only.
Source§

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

Source§

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

Available on crate feature glam only.
Source§

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

Source§

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

Available on crate feature glam only.
Source§

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

Source§

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

Available on crate feature glam only.
Source§

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

Source§

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

Available on crate feature glam only.
Source§

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

Source§

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

Available on crate feature glam only.
Source§

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

Source§

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

Available on crate feature glam only.
Source§

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

Source§

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

Available on crate feature smol_str only.
Source§

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

Source§

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

Available on crate feature uuid only.
Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

impl FromReflect for NonZeroIsize
where Self: Any + Send + Sync,

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

impl FromReflect for NonZeroUsize
where Self: Any + Send + Sync,

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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)

Source§

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)

Source§

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)

Source§

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)

Source§

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)

Source§

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)

Source§

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)

Source§

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)

Source§

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)

Source§

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)

Source§

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

Source§

impl<K, V> FromReflect for BTreeMap<K, V>

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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,

Source§

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

Source§

impl<T, S> FromReflect for HashSet<T, S>
where Self: Any + Send + Sync, T: TypePath + Hash + Eq + Clone + Send + Sync, S: TypePath + TypePath + Clone + Send + Sync,

Source§

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

Source§

impl<T, S> FromReflect for HashSet<T, S>
where Self: Any + Send + Sync, T: TypePath + Hash + Eq + Clone + Send + Sync, S: TypePath + TypePath + Clone + Send + Sync,

Source§

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.
Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Implementors§