pub trait ReflectInheritableVariable: Reflect + Debug {
    fn try_inherit(
        &mut self,
        parent: &dyn ReflectInheritableVariable
    ) -> Result<Option<Box<dyn Reflect>>, InheritError>; fn reset_modified_flag(&mut self); fn flags(&self) -> VariableFlags; fn is_modified(&self) -> bool; fn value_equals(&self, other: &dyn ReflectInheritableVariable) -> bool; fn clone_value_box(&self) -> Box<dyn Reflect>; fn mark_modified(&mut self); fn inner_value_mut(&mut self) -> &mut dyn Reflect; fn inner_value_ref(&self) -> &dyn Reflect; }

Required Methods§

Tries to inherit a value from parent. It will succeed only if the current variable is not marked as modified.

Resets modified flag from the variable.

Returns current variable flags.

Returns true if value was modified.

Returns true if value equals to other’s value.

Clones self value.

Marks value as modified, so its value won’t be overwritten during property inheritance.

Returns a mutable reference to wrapped value without marking the variable itself as modified.

Returns a shared reference to wrapped value without marking the variable itself as modified.

Implementors§