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