pub trait AsValue {
fn as_value(&self) -> Option<&Value>;
fn to_compiled(&self) -> Compiled;
}
Expand description
Types which can be treated like a Value
.
Required Methods
sourcefn as_value(&self) -> Option<&Value>
fn as_value(&self) -> Option<&Value>
Borrows a Value
out of this instance. Returns None
if this instance does not contain
any Value
s.
sourcefn to_compiled(&self) -> Compiled
fn to_compiled(&self) -> Compiled
Converts this instance into an owned compiled expression.