pub trait AnyVarValue:
Debug
+ Any
+ Send
+ Sync {
// Required methods
fn as_any(&self) -> &dyn Any;
fn as_any_mut(&mut self) -> &mut dyn Any;
fn into_any(self: Box<Self>) -> Box<dyn Any>;
fn clone_boxed(&self) -> Box<dyn AnyVarValue>;
fn clone_boxed_var(&self) -> BoxedAnyVar;
fn eq_any(&self, other: &dyn AnyVarValue) -> bool;
}
Expand description
Trait implemented for all VarValue
types.
Required Methods§
sourcefn as_any_mut(&mut self) -> &mut dyn Any
fn as_any_mut(&mut self) -> &mut dyn Any
Access to mut dyn Any
methods.
sourcefn clone_boxed(&self) -> Box<dyn AnyVarValue>
fn clone_boxed(&self) -> Box<dyn AnyVarValue>
Clone the value.
sourcefn clone_boxed_var(&self) -> BoxedAnyVar
fn clone_boxed_var(&self) -> BoxedAnyVar
Clone the value into a new boxed LocalVar<Self>
.
sourcefn eq_any(&self, other: &dyn AnyVarValue) -> bool
fn eq_any(&self, other: &dyn AnyVarValue) -> bool
Gets if self
equals other
.