pub struct Shape<L> { /* private fields */ }
Expand description
A primitive layout shape consisting of a layer and a geometric shape.
Implementations§
Trait Implementations§
Source§impl<L, T: Bbox> BoundingUnion<T> for Shape<L>
impl<L, T: Bbox> BoundingUnion<T> for Shape<L>
Source§impl<'de, L> Deserialize<'de> for Shape<L>where
L: Deserialize<'de>,
impl<'de, L> Deserialize<'de> for Shape<L>where
L: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<L> TransformMut for Shape<L>
impl<L> TransformMut for Shape<L>
Source§fn transform_mut(&mut self, trans: Transformation)
fn transform_mut(&mut self, trans: Transformation)
Applies matrix-vector
Transformation
trans
.Source§impl<L: Clone> TransformRef for Shape<L>
impl<L: Clone> TransformRef for Shape<L>
Source§fn transform_ref(&self, trans: Transformation) -> Self
fn transform_ref(&self, trans: Transformation) -> Self
Applies matrix-vector
Transformation
trans
.Source§impl<L> TranslateMut for Shape<L>
impl<L> TranslateMut for Shape<L>
Source§fn translate_mut(&mut self, p: Point)
fn translate_mut(&mut self, p: Point)
Translates the shape by a
Point
through mutation.Source§impl<L: Clone> TranslateRef for Shape<L>
impl<L: Clone> TranslateRef for Shape<L>
Source§fn translate_ref(&self, p: Point) -> Self
fn translate_ref(&self, p: Point) -> Self
Translates the shape by
Point
, returning a new shape.impl<L: Eq> Eq for Shape<L>
impl<L> StructuralPartialEq for Shape<L>
Auto Trait Implementations§
impl<L> Freeze for Shape<L>where
L: Freeze,
impl<L> RefUnwindSafe for Shape<L>where
L: RefUnwindSafe,
impl<L> Send for Shape<L>where
L: Send,
impl<L> Sync for Shape<L>where
L: Sync,
impl<L> Unpin for Shape<L>where
L: Unpin,
impl<L> UnwindSafe for Shape<L>where
L: UnwindSafe,
Blanket Implementations§
Source§impl<T> AlignBbox for Twhere
T: AlignBboxMut,
impl<T> AlignBbox for Twhere
T: AlignBboxMut,
Source§impl<T> AlignBboxMut for Twhere
T: AlignRectMut + Bbox,
impl<T> AlignBboxMut for Twhere
T: AlignRectMut + Bbox,
Source§impl<T> AlignRect for Twhere
T: AlignRectMut,
impl<T> AlignRect for Twhere
T: AlignRectMut,
Source§impl<T> AlignRectMut for Twhere
T: Translate,
impl<T> AlignRectMut for Twhere
T: Translate,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.