pub trait ObjectView<'a>: Copy {
type Item: Instance<'a>;
// Required methods
fn len(self) -> usize;
fn get(self, name: &str) -> Option<Self::Item>;
fn iter(self) -> impl Iterator<Item = (&'a str, Self::Item)>;
// Provided methods
fn is_empty(self) -> bool { ... }
fn contains_key(self, name: &str) -> bool { ... }
fn values(self) -> impl Iterator<Item = Self::Item> { ... }
}Expand description
The properties of an object, in their order.
Required Associated Types§
Required Methods§
Provided Methods§
fn is_empty(self) -> bool
fn contains_key(self, name: &str) -> bool
fn values(self) -> impl Iterator<Item = Self::Item>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".