pub trait HasTransformedView {
    type TransformedView;

    // Required method
    fn transformed_view(&self, trans: Transformation) -> Self::TransformedView;
}
Expand description

A trait for specifying how the transform of an object is computed.

For example, the transform view of a Rect may be an owned Rect since transformation can be applied quickly while the transform view of a Vec<Rect> only lazily transforms rectangles when they are queried.

Required Associated Types§

source

type TransformedView

An object storing a transformed view of Self.

Required Methods§

source

fn transformed_view(&self, trans: Transformation) -> Self::TransformedView

Produces a transformed view of self.

Implementations on Foreign Types§

source§

impl HasTransformedView for ()

source§

impl<T: HasTransformedView> HasTransformedView for Vec<T>

Implementors§