pub trait Views: Sized {
type Entity: Entity;
// Required method
fn from_builder(builder: ViewBuilder) -> Self;
}Expand description
Trait for generated view accessor structs.
This trait is implemented by generated code (e.g., OreRoundViews) to provide
type-safe access to all views for an entity.
Required Associated Types§
Required Methods§
fn from_builder(builder: ViewBuilder) -> Self
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.