Skip to main content

PercentExt

Trait PercentExt 

Source
pub trait PercentExt: Copy {
    // Required method
    fn percent(self) -> Percentage;
}
Expand description

Method-style percentage constructor.

Required Methods§

Source

fn percent(self) -> Percentage

<self>%.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§