pub trait Singleton<T> {
// Required method
fn singleton(x: T) -> Self;
}Expand description
Create a representation of a singleton sets from the given value.
Separated into a trait to allow conditional compilation
depending on the presence of the singleton feature.
Required Methods§
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.