pub trait StackBlurrable:
Default
+ Clone
+ Add<Output = Self>
+ AddAssign
+ SubAssign
+ Mul<usize, Output = Self>
+ Div<usize, Output = Self> { }
Expand description
The trait for types which can be blurred by StackBlur
.
This trait is auto-implemented for all types that satisfy its requirements.
Types that wish to implement this trait should be signed or use explicitly wrapping arithmetic.
They should have a significantly higher precision than the pixel format that
they represent, as they may be multiplied by hundreds or thousands before
being divided. They should also ideally be Copy
so that cloning is cheap.
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.