pub struct RuntimeValues(/* private fields */);Expand description
A collection of runtime values.
Provides utilities for working with multiple values, such as filtering and updating operations.
Implementations§
Source§impl RuntimeValues
impl RuntimeValues
Sourcepub fn compact(&self) -> Vec<RuntimeValue>
pub fn compact(&self) -> Vec<RuntimeValue>
Returns a compacted version of this collection, removing None and empty values.
Sourcepub fn values(&self) -> &Vec<RuntimeValue>
pub fn values(&self) -> &Vec<RuntimeValue>
Returns a reference to the underlying vector of values.
Sourcepub fn update_with(&self, other: Self) -> Self
pub fn update_with(&self, other: Self) -> Self
Updates this collection with values from another collection.
Pairs corresponding elements from both collections and applies special update logic for markdown nodes.
Trait Implementations§
Source§impl Clone for RuntimeValues
impl Clone for RuntimeValues
Source§fn clone(&self) -> RuntimeValues
fn clone(&self) -> RuntimeValues
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RuntimeValues
impl Debug for RuntimeValues
Source§impl From<Vec<RuntimeValue>> for RuntimeValues
impl From<Vec<RuntimeValue>> for RuntimeValues
Source§fn from(values: Vec<RuntimeValue>) -> Self
fn from(values: Vec<RuntimeValue>) -> Self
Converts to this type from the input type.
Source§impl Index<usize> for RuntimeValues
impl Index<usize> for RuntimeValues
Source§impl IndexMut<usize> for RuntimeValues
impl IndexMut<usize> for RuntimeValues
Source§impl IntoIterator for RuntimeValues
impl IntoIterator for RuntimeValues
Source§impl PartialEq for RuntimeValues
impl PartialEq for RuntimeValues
Source§fn eq(&self, other: &RuntimeValues) -> bool
fn eq(&self, other: &RuntimeValues) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RuntimeValues
Auto Trait Implementations§
impl !RefUnwindSafe for RuntimeValues
impl !Send for RuntimeValues
impl !Sync for RuntimeValues
impl !UnwindSafe for RuntimeValues
impl Freeze for RuntimeValues
impl Unpin for RuntimeValues
impl UnsafeUnpin for RuntimeValues
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more