pub trait Opacity {
// Required method
fn set_opacity(&mut self, opacity: f32) -> &mut Self;
}Expand description
A trait for items with opacity
Required Methods§
Sourcefn set_opacity(&mut self, opacity: f32) -> &mut Self
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.