pub trait ChangeableDefault {
// Required methods
unsafe fn change_default(val: Self);
fn get_default() -> Self;
}
Required Methods§
Sourceunsafe fn change_default(val: Self)
unsafe fn change_default(val: Self)
§Safety
This function changes static mutable variable. It is better applying cargo feature instead of using this function.
fn get_default() -> 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.