VrlValueConvert

Trait VrlValueConvert 

Source
pub trait VrlValueConvert: Sized {
Show 13 methods // Required methods fn into_expression(self) -> Box<dyn Expression>; fn try_integer(self) -> Result<i64, ValueError>; fn try_float(self) -> Result<f64, ValueError>; fn try_bytes(self) -> Result<Bytes, ValueError>; fn try_boolean(self) -> Result<bool, ValueError>; fn try_regex(self) -> Result<ValueRegex, ValueError>; fn try_null(self) -> Result<(), ValueError>; fn try_array(self) -> Result<Vec<Value>, ValueError>; fn try_object(self) -> Result<ObjectMap, ValueError>; fn try_timestamp(self) -> Result<DateTime<Utc>, ValueError>; fn try_into_i64(&self) -> Result<i64, ValueError>; fn try_into_f64(&self) -> Result<f64, ValueError>; fn try_bytes_utf8_lossy(&self) -> Result<Cow<'_, str>, ValueError>;
}

Required Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§