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.

Implementations on Foreign Types§

Source§

impl Opacity for Sphere

Source§

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

Source§

impl Opacity for MeshItem

Source§

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

Source§

impl Opacity for Surface

Source§

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

Source§

impl Opacity for Arc

Source§

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

Source§

impl Opacity for ArcBetweenPoints

Source§

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

Source§

impl Opacity for Circle

Source§

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

Source§

impl Opacity for Ellipse

Source§

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

Source§

impl Opacity for EllipticArc

Source§

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

Source§

impl Opacity for Line

Source§

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

Source§

impl Opacity for Parallelogram

Source§

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

Source§

impl Opacity for Polygon

Source§

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

Source§

impl Opacity for Rectangle

Source§

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

Source§

impl Opacity for RegularPolygon

Source§

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

Source§

impl Opacity for Square

Source§

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

Source§

impl Opacity for VItem

Source§

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

Source§

impl Opacity for SvgItem

Source§

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

Source§

impl Opacity for TypstText

Source§

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

Implementors§

Source§

impl Opacity for Rgba

Source§

impl Opacity for PointVec<Rgba>

Source§

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