1 2 3 4 5 6 7 8 9 10 11 12 13
pub use crate::Value; impl From<&Value<'_>> for bool{ fn from(arg: &Value) -> Self { arg.inner.as_bool().unwrap_or_default() } } impl From<Value<'_>> for bool{ fn from(arg: Value) -> Self { arg.inner.as_bool().unwrap_or_default() } }