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 for Vec<T>

Implementors§

source§

impl HasTransformedView for Element

source§

impl HasTransformedView for substrate::geometry::shape::Shape

source§

impl HasTransformedView for IoShape

source§

impl HasTransformedView for PortGeometry

source§

impl HasTransformedView for DiffPairLayout

source§

impl HasTransformedView for MosIoLayout

source§

impl HasTransformedView for PowerIoLayout

source§

impl HasTransformedView for TestbenchIoLayout

source§

impl HasTransformedView for TwoTerminalIoLayout

source§

impl HasTransformedView for RawCell

source§

impl HasTransformedView for RawInstance

source§

impl HasTransformedView for substrate::layout::element::Shape

source§

impl HasTransformedView for Text

source§

impl HasTransformedView for Point

source§

impl HasTransformedView for Rect

source§

impl<T: ExportsLayoutData> HasTransformedView for Cell<T>

source§

impl<T: ExportsLayoutData> HasTransformedView for Instance<T>

source§

impl<T: HasTransformedView> HasTransformedView for ArrayData<T>