Skip to main content

Opacity

Trait Opacity 

Source
pub trait Opacity {
    // Required method
    fn set_opacity(&mut self, opacity: f32) -> &mut Self;
}
Expand description

A trait for items with opacity

Required Methods§

Source

fn set_opacity(&mut self, opacity: f32) -> &mut Self

Setting opacity of an item

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl Opacity for PointVec<Rgba>

Source§

impl Opacity for Rgba

Source§

impl<T: Opacity, G> Opacity for Transformed<T, G>

Source§

impl<T: Opacity, I> Opacity for I
where for<'a> &'a mut I: IntoIterator<Item = &'a mut T>,