Struct criterion_plot::Opacity
source · [−]pub struct Opacity(pub f64);
Expand description
Fill color opacity
Tuple Fields
0: f64
Trait Implementations
sourceimpl Set<Opacity> for Properties
impl Set<Opacity> for Properties
sourcefn set(&mut self, opacity: Opacity) -> &mut Properties
fn set(&mut self, opacity: Opacity) -> &mut Properties
Changes the opacity of the fill color
Note By default, the fill color is totally opaque (opacity = 1.0
)
Panics
Panics if opacity
is outside the range [0, 1]
impl Copy for Opacity
Auto Trait Implementations
impl RefUnwindSafe for Opacity
impl Send for Opacity
impl Sync for Opacity
impl Unpin for Opacity
impl UnwindSafe for Opacity
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more