pub trait ConcreteVariantArray {
type Value: VariantValue<VariantArray = Self>;
// Required methods
fn is_empty(&self) -> bool;
fn len(&self) -> usize;
fn get(&self, index: usize) -> Option<&Self::Value>;
fn iter(&self) -> impl Iterator<Item = &Self::Value>;
}Expand description
A trait for the concrete variant array type associated with a variant value.
Required Associated Types§
Sourcetype Value: VariantValue<VariantArray = Self>
type Value: VariantValue<VariantArray = Self>
The type of the value in the array.
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.
Implementations on Foreign Types§
Source§impl ConcreteVariantArray for Vec<Value>
Available on crate feature json only.
impl ConcreteVariantArray for Vec<Value>
Available on crate feature
json only.Source§impl ConcreteVariantArray for Vec<Value>
Available on crate feature toml only.
impl ConcreteVariantArray for Vec<Value>
Available on crate feature
toml only.