rustc_metadata::rmeta::table

Trait IsDefault

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

Required Methods§

Source

fn is_default(&self) -> bool

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.

Implementations on Foreign Types§

Source§

impl IsDefault for bool

Source§

impl IsDefault for u32

Source§

impl IsDefault for u64

Source§

impl IsDefault for UnusedGenericParams

Source§

impl<T> IsDefault for Option<T>

Implementors§