Derive Macro num_derive::One

source ·
#[derive(One)]
{
    // Attributes available to this derive:
    #[num_traits]
}
Expand description

Derives num_traits::One for newtypes. The inner type must already implement One.