pub trait Translate: TranslateMut + Sized {
    // Provided method
    fn translate(self, p: Point) -> Self { ... }
}
Expand description

A trait for specifying how a shape is translated by a Point.

Takes in an owned copy of the shape and returns the translated version.

Provided Methods§

source

fn translate(self, p: Point) -> Self

Translates the shape by a Point through mutation.

Creates a new shape at a location equal to the translation of the original.

Object Safety§

This trait is not object safe.

Implementors§