pub struct PortGeometry<L> {
pub primary: Shape<L>,
pub unnamed_shapes: Vec<Shape<L>>,
pub named_shapes: HashMap<ArcStr, Shape<L>>,
}
Expand description
A layout port with a generic set of associated geometry.
Fields§
§primary: Shape<L>
The primary shape of the port.
Not contained in named_shapes
or unnamed_shapes
.
unnamed_shapes: Vec<Shape<L>>
A set of unnamed shapes contained by the port.
named_shapes: HashMap<ArcStr, Shape<L>>
A set of named shapes contained by the port.
Implementations§
Source§impl<L> PortGeometry<L>
impl<L> PortGeometry<L>
Sourcepub fn new(primary: impl Into<Shape<L>>) -> Self
pub fn new(primary: impl Into<Shape<L>>) -> Self
Create a new PortGeometry
with the given primary shape.
Sourcepub fn shapes(&self) -> impl Iterator<Item = &Shape<L>>
pub fn shapes(&self) -> impl Iterator<Item = &Shape<L>>
Returns an iterator over all shapes in a PortGeometry
.
Trait Implementations§
Source§impl<L> Bbox for PortGeometry<L>
impl<L> Bbox for PortGeometry<L>
Source§impl<L: Clone> Clone for PortGeometry<L>
impl<L: Clone> Clone for PortGeometry<L>
Source§fn clone(&self) -> PortGeometry<L>
fn clone(&self) -> PortGeometry<L>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<L: Debug> Debug for PortGeometry<L>
impl<L: Debug> Debug for PortGeometry<L>
Source§impl<L> FlatLen for PortGeometry<L>
impl<L> FlatLen for PortGeometry<L>
Source§impl<L> Flatten<PortGeometry<L>> for ()
impl<L> Flatten<PortGeometry<L>> for ()
Source§impl<L: Clone> Flatten<PortGeometry<L>> for PortGeometry<L>
impl<L: Clone> Flatten<PortGeometry<L>> for PortGeometry<L>
Source§impl<L: Send + Sync> HasBundleKind for PortGeometry<L>
impl<L: Send + Sync> HasBundleKind for PortGeometry<L>
Source§type BundleKind = Signal
type BundleKind = Signal
The Rust type of the
BundleKind
associated with this bundle.Source§fn kind(&self) -> Self::BundleKind
fn kind(&self) -> Self::BundleKind
Returns the
BundleKind
of this bundle.Source§impl<L: PartialEq> PartialEq for PortGeometry<L>
impl<L: PartialEq> PartialEq for PortGeometry<L>
Source§impl<L: Clone> TransformRef for PortGeometry<L>
impl<L: Clone> TransformRef for PortGeometry<L>
Source§fn transform_ref(&self, trans: Transformation) -> Self
fn transform_ref(&self, trans: Transformation) -> Self
Applies matrix-vector
Transformation
trans
.Source§impl<L: Clone> TranslateRef for PortGeometry<L>
impl<L: Clone> TranslateRef for PortGeometry<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.Source§impl<L> Unflatten<Signal, PortGeometry<L>> for PortGeometry<L>
impl<L> Unflatten<Signal, PortGeometry<L>> for PortGeometry<L>
impl<L: Eq> Eq for PortGeometry<L>
impl<L> StructuralPartialEq for PortGeometry<L>
Auto Trait Implementations§
impl<L> Freeze for PortGeometry<L>where
L: Freeze,
impl<L> RefUnwindSafe for PortGeometry<L>where
L: RefUnwindSafe,
impl<L> Send for PortGeometry<L>where
L: Send,
impl<L> Sync for PortGeometry<L>where
L: Sync,
impl<L> Unpin for PortGeometry<L>where
L: Unpin,
impl<L> UnwindSafe for PortGeometry<L>where
L: UnwindSafe,
Blanket Implementations§
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<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
, which can then be
downcast
into Box<dyn ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
, which can then be further
downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSend for T
impl<T> DowncastSend for T
§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§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<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<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>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request