pub trait Frame:
Copy
+ Debug
+ PartialEq
+ Eq
+ 'static {
const NAME: &'static str;
}Expand description
A reference frame.
Implemented only by the tag types in this module. A frame is never instantiated; it exists to label a type parameter and then vanish.
The supertraits exist so that #[derive(Copy)] on the frame-tagged types does
not demand them all over again: a derive on a struct holding
PhantomData<fn(F) -> F> adds a spurious F: Copy bound, even though
PhantomData is Copy unconditionally.
Required Associated Constants§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".