Trait bevy_reflect::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.).

Object Safety§

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,

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,

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

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,

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,

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

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,

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,

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

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>

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§