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", so this trait is not object safe.

Implementors§

Source§

impl Opacity for Rgba

Source§

impl Opacity for PointVec<Rgba>

Source§

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