Struct libreda_pnr::db::Shape[][src]

pub struct Shape<T> where
    T: CoordinateType
{ pub geometry: Geometry<T>, // some fields omitted }

Wrapper around a Geometry struct.

Fields

geometry: Geometry<T>

The geometry of this shape.

Implementations

impl<T> Shape<T> where
    T: CoordinateType
[src]

pub fn index(&self) -> Index<Shape<T>>[src]

Get the index of this shape.

Methods from Deref<Target = Geometry<T>>

pub fn transformed(&self, tf: &SimpleTransform<T>) -> Geometry<T>

Create a transformed copy of the geometric object.

Trait Implementations

impl<T> Clone for Shape<T> where
    T: Clone + CoordinateType
[src]

impl<T> Debug for Shape<T> where
    T: Debug + CoordinateType
[src]

impl<T> Deref for Shape<T> where
    T: CoordinateType
[src]

type Target = Geometry<T>

The resulting type after dereferencing.

impl<T> PartialEq<Shape<T>> for Shape<T> where
    T: CoordinateType
[src]

impl<C> WithProperties for Shape<C> where
    C: CoordinateType
[src]

type Key = String

Property key type.

Auto Trait Implementations

impl<T> !RefUnwindSafe for Shape<T>

impl<T> !Send for Shape<T>

impl<T> !Sync for Shape<T>

impl<T> Unpin for Shape<T> where
    T: Unpin

impl<T> !UnwindSafe for Shape<T>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.