[−][src]Struct tremor_script::ValueAndMeta
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]
fn clone(&self) -> ValueAndMeta<'event>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'event> Debug for ValueAndMeta<'event>
[src]
impl<'event> Default for ValueAndMeta<'event>
[src]
impl<'v> From<Value<'v>> for ValueAndMeta<'v>
[src]
fn from(value: Value<'v>) -> ValueAndMeta<'v>
[src]
impl<'event> PartialEq<ValueAndMeta<'event>> for ValueAndMeta<'event>
[src]
fn eq(&self, other: &ValueAndMeta<'event>) -> bool
[src]
fn ne(&self, other: &ValueAndMeta<'event>) -> bool
[src]
impl<'event> Serialize for ValueAndMeta<'event>
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Downcast for T where
T: Any,
[src]
T: Any,
fn into_any(self: Box<T>) -> Box<dyn Any + 'static>
[src]
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
[src]
fn as_any(&self) -> &(dyn Any + 'static)
[src]
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
[src]
impl<T> DowncastSync for T where
T: Send + Sync + Any,
[src]
T: Send + Sync + Any,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,