Trait IsDefault

Source
trait IsDefault: Default {
    // Required method
    fn is_default(&self) -> bool;
}
Expand description

Checks that type has a default value.

Required Methods§

Source

fn is_default(&self) -> bool

Checks that type has a default value.

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.

Implementors§