Struct libreda_db::layout::shape_collection::Shape [−][src]
Wrapper around a Geometry struct.
Fields
geometry: Geometry<T>The geometry of this shape.
Implementations
impl<T: CoordinateType> Shape<T>[src]
Methods from Deref<Target = Geometry<T>>
pub fn transformed(&self, tf: &SimpleTransform<T>) -> Geometry<T>[src]
Create a transformed copy of the geometric object.
Trait Implementations
impl<T: Clone + CoordinateType> Clone for Shape<T>[src]
impl<T: Debug + CoordinateType> Debug for Shape<T>[src]
impl<T: CoordinateType> Deref for Shape<T>[src]
type Target = Geometry<T>
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target[src]
impl<T: CoordinateType> PartialEq<Shape<T>> for Shape<T>[src]
impl<C: CoordinateType> WithProperties for Shape<C>[src]
type Key = String
Property key type.
fn with_properties<F, R>(&self, f: F) -> R where
F: FnOnce(Option<&PropertyStore<Self::Key>>) -> R, [src]
F: FnOnce(Option<&PropertyStore<Self::Key>>) -> R,
fn with_properties_mut<F, R>(&self, f: F) -> R where
F: FnOnce(&mut PropertyStore<Self::Key>) -> R, [src]
F: FnOnce(&mut PropertyStore<Self::Key>) -> R,
fn property<Q: ?Sized>(&self, key: &Q) -> Option<PropertyValue> where
Self::Key: Borrow<Q>,
Q: Eq + Hash, [src]
Self::Key: Borrow<Q>,
Q: Eq + Hash,
fn property_str<Q: ?Sized>(&self, key: &Q) -> Option<Rc<String>> where
Self::Key: Borrow<Q>,
Q: Eq + Hash, [src]
Self::Key: Borrow<Q>,
Q: Eq + Hash,
fn set_property<V: Into<PropertyValue>>(
&self,
key: Self::Key,
value: V
) -> Option<PropertyValue>[src]
&self,
key: Self::Key,
value: V
) -> Option<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>,