pub trait EnumRef {
type Ref<'a>
where Self: 'a;
// Required method
fn as_ref(&self) -> Self::Ref<'_>;
}Expand description
Trait implemented by enum types for shared access.
This trait usually is implemented via #[derive(EnumRef)].
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".