pub trait CachedSettings {
// Required methods
fn set(gl: &Gl, value: &Self);
fn read_cached(cache: &impl Deref<Target = SettingsCache>) -> Self;
fn write_cached(
cache: &mut impl DerefMut<Target = SettingsCache>,
value: &Self,
);
}
Required Methods§
fn set(gl: &Gl, value: &Self)
fn read_cached(cache: &impl Deref<Target = SettingsCache>) -> Self
fn write_cached(cache: &mut impl DerefMut<Target = SettingsCache>, value: &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.