pub struct GeneratedValues<'a> { /* private fields */ }Expand description
Structure for generated values set
Implementations§
Source§impl<'a> GeneratedValues<'a>
impl<'a> GeneratedValues<'a>
Sourcepub fn get_all_values(&self) -> &DataValueMap<&str>
pub fn get_all_values(&self) -> &DataValueMap<&str>
Get all values regardless of whether the key is specified as the value for which output is required
Sourcepub fn filter_values(&self) -> SchemaResult<Vec<&DataValue>>
pub fn filter_values(&self) -> SchemaResult<Vec<&DataValue>>
Get all values for which the key is specified as the value for which output is required
Sourcepub fn filter_values_with_key<'b>(
&'b self,
) -> SchemaResult<Vec<(&'a str, &'b DataValue)>>
pub fn filter_values_with_key<'b>( &'b self, ) -> SchemaResult<Vec<(&'a str, &'b DataValue)>>
Get all keys and values for which the key is specified as the value for which output is required
Sourcepub fn into_values(self) -> SchemaResult<Vec<DataValue>>
pub fn into_values(self) -> SchemaResult<Vec<DataValue>>
Convert to a sequence from all values for which the key is specified as the value for which output is required
Sourcepub fn into_values_with_key(self) -> SchemaResult<Vec<(String, DataValue)>>
pub fn into_values_with_key(self) -> SchemaResult<Vec<(String, DataValue)>>
Convert to a sequence from all keys and values for which the key is specified as the value for which output is required
Trait Implementations§
Source§impl<'a> Debug for GeneratedValues<'a>
impl<'a> Debug for GeneratedValues<'a>
Auto Trait Implementations§
impl<'a> Freeze for GeneratedValues<'a>
impl<'a> RefUnwindSafe for GeneratedValues<'a>
impl<'a> Send for GeneratedValues<'a>
impl<'a> Sync for GeneratedValues<'a>
impl<'a> Unpin for GeneratedValues<'a>
impl<'a> UnwindSafe for GeneratedValues<'a>
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
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