Trait zng_var::AnyVarValue

source ·
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§

source

fn as_any(&self) -> &dyn Any

Access to dyn Any methods.

source

fn as_any_mut(&mut self) -> &mut dyn Any

Access to mut dyn Any methods.

source

fn into_any(self: Box<Self>) -> Box<dyn Any>

Access to Box<dyn Any> methods.

source

fn clone_boxed(&self) -> Box<dyn AnyVarValue>

Clone the value.

source

fn clone_boxed_var(&self) -> BoxedAnyVar

Clone the value into a new boxed LocalVar<Self>.

source

fn eq_any(&self, other: &dyn AnyVarValue) -> bool

Gets if self equals other.

Implementors§