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<'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: PartialEq> LayerBbox<L> for Shape<L>
impl<L: PartialEq> LayerBbox<L> for Shape<L>
Source§fn layer_bbox(&self, layer: &L) -> Option<Rect>
fn layer_bbox(&self, layer: &L) -> Option<Rect>
Compute the bounding box considering only objects occupying the given layer.
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§
§impl<T> AlignBbox for Twhere
T: AlignBboxMut,
impl<T> AlignBbox for Twhere
T: AlignBboxMut,
§fn align_bbox(self, mode: AlignMode, other: impl Bbox, offset: i64) -> Self
fn align_bbox(self, mode: AlignMode, other: impl Bbox, offset: i64) -> Self
§impl<T> AlignBboxMut for Twhere
T: AlignRectMut + Bbox,
impl<T> AlignBboxMut for Twhere
T: AlignRectMut + Bbox,
§fn align_bbox_mut(&mut self, mode: AlignMode, other: impl Bbox, offset: i64)
fn align_bbox_mut(&mut self, mode: AlignMode, other: impl Bbox, offset: i64)
§impl<T> AlignRect for Twhere
T: AlignRectMut,
impl<T> AlignRect for Twhere
T: AlignRectMut,
§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.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> PlaceBbox for Twhere
T: PlaceBboxMut,
impl<T> PlaceBbox for Twhere
T: PlaceBboxMut,
§fn place_bbox(self, mode: PlaceMode, pt: Point) -> Self
fn place_bbox(self, mode: PlaceMode, pt: Point) -> Self
Places an object at the given point using its boudning box. Read more
§impl<T> PlaceBboxMut for Twhere
T: PlaceRectMut + Bbox,
impl<T> PlaceBboxMut for Twhere
T: PlaceRectMut + Bbox,
§fn place_bbox_mut(&mut self, mode: PlaceMode, pt: Point)
fn place_bbox_mut(&mut self, mode: PlaceMode, pt: Point)
Places an object at the given point using its bounding box. Read more