logo
pub unsafe trait Reflect: Any + Send + Sync {
    fn type_name(&self) -> &str;
fn any(&self) -> &(dyn Any + 'static);
fn any_mut(&mut self) -> &mut (dyn Any + 'static);
fn apply(&mut self, value: &(dyn Reflect + 'static));
fn set(
        &mut self,
        value: Box<dyn Reflect + 'static, Global>
    ) -> Result<(), Box<dyn Reflect + 'static, Global>>;
fn reflect_ref(&self) -> ReflectRef<'_>;
fn reflect_mut(&mut self) -> ReflectMut<'_>;
fn clone_value(&self) -> Box<dyn Reflect + 'static, Global>Notable traits for Box<I, A>impl<I, A> Iterator for Box<I, A> where
    I: Iterator + ?Sized,
    A: Allocator
type Item = <I as Iterator>::Item;impl<F, A> Future for Box<F, A> where
    F: Future + Unpin + ?Sized,
    A: Allocator + 'static, 
type Output = <F as Future>::Output;
;
fn reflect_hash(&self) -> Option<u64>;
fn reflect_partial_eq(
        &self,
        _value: &(dyn Reflect + 'static)
    ) -> Option<bool>;
fn serializable(&self) -> Option<Serializable<'_>>; }
Expand description

A reflected rust type.

Safety

Implementors must ensure that Reflect::any and Reflect::any_mut both return the self value passed in If this is not done, Reflect::downcast will be UB (and also just logically broken).

Required methods

Returns a hash of the value (which includes the type) if hashing is supported. Otherwise None will be returned.

Returns a “partial equal” comparison result if comparison is supported. Otherwise None will be returned.

Returns a serializable value, if serialization is supported. Otherwise None will be returned.

Implementations

Trait Implementations

Performs the conversion.

Performs the conversion.

Formats the value using the given formatter. Read more

Implementations on Foreign Types

Implementors