Trait zng::var::AnyVarValue

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

source

fn as_any(&self) -> &(dyn Any + 'static)

Access to dyn Any methods.

source

fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)

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) -> Box<dyn AnyVar>

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

source

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

Gets if self equals other.

Implementors§

source§

impl<T> AnyVarValue for T
where T: VarValue,