Struct libreda_pnr::db::Shape [−][src]
Wrapper around a Geometry
struct.
Fields
geometry: Geometry<T>
The geometry of this shape.
Implementations
impl<T> Shape<T> where
T: CoordinateType,
[src]
T: CoordinateType,
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]
T: Clone + CoordinateType,
impl<T> Debug for Shape<T> where
T: Debug + CoordinateType,
[src]
T: Debug + CoordinateType,
impl<T> Deref for Shape<T> where
T: CoordinateType,
[src]
T: CoordinateType,
type Target = Geometry<T>
The resulting type after dereferencing.
pub fn deref(&self) -> &<Shape<T> as Deref>::Target
[src]
impl<T> PartialEq<Shape<T>> for Shape<T> where
T: CoordinateType,
[src]
T: CoordinateType,
pub fn eq(&self, other: &Shape<T>) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<C> WithProperties for Shape<C> where
C: CoordinateType,
[src]
C: CoordinateType,
type Key = String
Property key type.
pub fn with_properties<F, R>(&self, f: F) -> R where
F: FnOnce(Option<&PropertyStore<<Shape<C> as WithProperties>::Key>>) -> R,
[src]
F: FnOnce(Option<&PropertyStore<<Shape<C> as WithProperties>::Key>>) -> R,
pub fn with_properties_mut<F, R>(&self, f: F) -> R where
F: FnOnce(&mut PropertyStore<<Shape<C> as WithProperties>::Key>) -> R,
[src]
F: FnOnce(&mut PropertyStore<<Shape<C> as WithProperties>::Key>) -> R,
pub fn property<Q>(&self, key: &Q) -> Option<PropertyValue> where
Q: Eq + Hash + ?Sized,
Self::Key: Borrow<Q>,
[src]
Q: Eq + Hash + ?Sized,
Self::Key: Borrow<Q>,
pub fn property_str<Q>(&self, key: &Q) -> Option<Rc<String>> where
Q: Eq + Hash + ?Sized,
Self::Key: Borrow<Q>,
[src]
Q: Eq + Hash + ?Sized,
Self::Key: Borrow<Q>,
pub fn set_property<V>(&self, key: Self::Key, value: V) -> Option<PropertyValue> where
V: Into<PropertyValue>,
[src]
V: Into<PropertyValue>,
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,
T: Unpin,
impl<T> !UnwindSafe for Shape<T>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,