Trait Mirror

Source
pub trait Mirror<T> {
    // Required methods
    fn mirror_x(&self) -> Self;
    fn mirror_y(&self) -> Self;
}
Expand description

Mirror at the x or y axis.

Required Methods§

Source

fn mirror_x(&self) -> Self

Mirror this shape at the x-axis.

Source

fn mirror_y(&self) -> Self

Mirror this shape at the y-axis.

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<S, T> Mirror<T> for S
where T: Copy + Zero + Sub<Output = T>, S: MapPointwise<T>,