substrate::geometry::transform

Trait TranslateRef

Source
pub trait TranslateRef: Sized {
    // Required method
    fn translate_ref(&self, p: Point) -> Self;
}
Expand description

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

Required Methods§

Source

fn translate_ref(&self, p: Point) -> Self

Translates the shape by Point, returning a new shape.

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.

Implementations on Foreign Types§

Source§

impl TranslateRef for ()

Source§

impl<L> TranslateRef for Shape<L>
where L: Clone,

Source§

fn translate_ref(&self, p: Point) -> Shape<L>

Source§

impl<L> TranslateRef for Text<L>
where L: Clone,

Source§

fn translate_ref(&self, p: Point) -> Text<L>

Source§

impl<T> TranslateRef for Option<T>
where T: TranslateRef,

Source§

fn translate_ref(&self, p: Point) -> Option<T>

Source§

impl<T> TranslateRef for Vec<T>
where T: TranslateRef,

Source§

fn translate_ref(&self, p: Point) -> Vec<T>

Implementors§

Source§

impl TranslateRef for substrate::geometry::shape::Shape

Source§

impl TranslateRef for Point

Source§

impl TranslateRef for Polygon

Source§

impl TranslateRef for Rect

Source§

impl<L: Clone> TranslateRef for Element<L>

Source§

impl<L: Clone> TranslateRef for RawCell<L>

Source§

impl<L: Clone> TranslateRef for RawInstance<L>

Source§

impl<L: Clone> TranslateRef for PortGeometry<L>

Source§

impl<SubstrateV> TranslateRef for DiffPairView<SubstrateV>
where InOut<Signal>: HasView<SubstrateV>, <InOut<Signal> as HasView<SubstrateV>>::View: TranslateRef,

Source§

impl<SubstrateV> TranslateRef for MosIoView<SubstrateV>
where InOut<Signal>: HasView<SubstrateV>, Input<Signal>: HasView<SubstrateV>, <InOut<Signal> as HasView<SubstrateV>>::View: TranslateRef, <Input<Signal> as HasView<SubstrateV>>::View: TranslateRef,

Source§

impl<SubstrateV> TranslateRef for PowerIoView<SubstrateV>
where InOut<Signal>: HasView<SubstrateV>, <InOut<Signal> as HasView<SubstrateV>>::View: TranslateRef,

Source§

impl<SubstrateV> TranslateRef for TestbenchIoView<SubstrateV>
where InOut<Signal>: HasView<SubstrateV>, <InOut<Signal> as HasView<SubstrateV>>::View: TranslateRef,

Source§

impl<SubstrateV> TranslateRef for TwoTerminalIoView<SubstrateV>
where InOut<Signal>: HasView<SubstrateV>, <InOut<Signal> as HasView<SubstrateV>>::View: TranslateRef,

Source§

impl<T: Layout> TranslateRef for Instance<T>

Source§

impl<T: Layout> TranslateRef for TransformedCell<T>

Source§

impl<T: HasBundleKind + TranslateRef> TranslateRef for ArrayBundle<T>