pub struct RawCell<L> { /* private fields */ }
Expand description
A raw layout cell.
Implementations§
Source§impl<L> RawCell<L>
impl<L> RawCell<L>
Sourcepub fn elements(&self) -> impl Iterator<Item = &Element<L>>
pub fn elements(&self) -> impl Iterator<Item = &Element<L>>
Returns an iterator over the elements of this cell.
Sourcepub fn ports(&self) -> impl Iterator<Item = (&NameBuf, &PortGeometry<L>)>
pub fn ports(&self) -> impl Iterator<Item = (&NameBuf, &PortGeometry<L>)>
Returns an iterator over the ports of this cell, as (name, geometry)
pairs.
Sourcepub fn port_named(&self, name: &str) -> Option<&PortGeometry<L>>
pub fn port_named(&self, name: &str) -> Option<&PortGeometry<L>>
Returns a reference to the port with the given name, if it exists.
Trait Implementations§
Source§impl<L: Clone> TransformRef for RawCell<L>
impl<L: Clone> TransformRef for RawCell<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 RawCell<L>
impl<L: Clone> TranslateRef for RawCell<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> StructuralPartialEq for RawCell<L>
Auto Trait Implementations§
impl<L> Freeze for RawCell<L>
impl<L> RefUnwindSafe for RawCell<L>where
L: RefUnwindSafe,
impl<L> Send for RawCell<L>
impl<L> Sync for RawCell<L>
impl<L> Unpin for RawCell<L>where
L: Unpin,
impl<L> UnwindSafe for RawCell<L>where
L: UnwindSafe + RefUnwindSafe,
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
§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