[][src]Struct tremor_script::ValueAndMeta

pub struct ValueAndMeta<'event> { /* fields omitted */ }

Combined struct for an event value and metadata

Methods

impl<'event> ValueAndMeta<'event>[src]

pub fn from_parts(v: Value<'event>, m: Value<'event>) -> Self[src]

A value from it's parts

pub fn value(&self) -> &Value<'event>[src]

Event value

pub unsafe fn force_value_mut(&self) -> &mut Value<'event>[src]

Event value forced to borrowd mutable (uses mem::transmute)

Safety

This isn't save, use with care and reason about mutability!

pub fn value_mut(&mut self) -> &mut Value<'event>[src]

Event value

pub fn meta(&self) -> &Value<'event>[src]

Event metadata

pub fn into_parts(self) -> (Value<'event>, Value<'event>)[src]

Deconstruicts the value into it's parts

Trait Implementations

impl<'event> Clone for ValueAndMeta<'event>[src]

impl<'event> Debug for ValueAndMeta<'event>[src]

impl<'event> Default for ValueAndMeta<'event>[src]

impl<'v> From<Value<'v>> for ValueAndMeta<'v>[src]

impl<'event> PartialEq<ValueAndMeta<'event>> for ValueAndMeta<'event>[src]

impl<'event> Serialize for ValueAndMeta<'event>[src]

impl<'event> StructuralPartialEq for ValueAndMeta<'event>[src]

Auto Trait Implementations

impl<'event> RefUnwindSafe for ValueAndMeta<'event>

impl<'event> Send for ValueAndMeta<'event>

impl<'event> Sync for ValueAndMeta<'event>

impl<'event> Unpin for ValueAndMeta<'event>

impl<'event> UnwindSafe for ValueAndMeta<'event>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Downcast for T where
    T: Any
[src]

impl<T> DowncastSync for T where
    T: Send + Sync + Any
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,