pub trait DefaultForLevel {
// Required method
fn default_for_level(level: Trust) -> Self;
}Expand description
A trait to help creating default values based on a trust level.
Required Methods§
Sourcefn default_for_level(level: Trust) -> Self
fn default_for_level(level: Trust) -> Self
Produce a default value for the given trust level.
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.