pub trait ObjectValue<const CONST: bool>: Debug {
type Key: AsRef<str> + PartialEq + Debug;
type Value: Value<CONST, Object = Self>;
type Iterator<'a>: Iterator<Item = (&'a Self::Key, &'a Self::Value)>
where Self: 'a;
// Required method
fn iter(&self) -> Self::Iterator<'_>;
}
Required Associated Types§
type Key: AsRef<str> + PartialEq + Debug
type Value: Value<CONST, Object = Self>
type Iterator<'a>: Iterator<Item = (&'a Self::Key, &'a Self::Value)> where Self: 'a
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.