pub struct RawInstance<L> { /* private fields */ }
Expand description
A raw layout instance.
Consists of a pointer to an underlying cell and its instantiated transformation.
Implementations§
Source§impl<L> RawInstance<L>
impl<L> RawInstance<L>
Sourcepub fn new(cell: impl Into<Arc<RawCell<L>>>, trans: Transformation) -> Self
pub fn new(cell: impl Into<Arc<RawCell<L>>>, trans: Transformation) -> Self
Create a new raw instance of the given cell.
Sourcepub fn raw_cell(&self) -> &RawCell<L>
pub fn raw_cell(&self) -> &RawCell<L>
Returns a raw reference to the child cell.
The returned cell does not store any information related
to this instance’s transformation.
Consider using RawInstance::cell
instead.
Source§impl<L: Clone> RawInstance<L>
impl<L: Clone> RawInstance<L>
Sourcepub fn cell(&self) -> RawCell<L>
pub fn cell(&self) -> RawCell<L>
Returns a reference to the child cell.
The returned object provides coordinates in the parent cell’s coordinate system.
If you want coordinates in the child cell’s coordinate system,
consider using RawInstance::raw_cell
instead.
Trait Implementations§
Source§impl<L> Bbox for RawInstance<L>
impl<L> Bbox for RawInstance<L>
Source§impl<L: Clone> Clone for RawInstance<L>
impl<L: Clone> Clone for RawInstance<L>
Source§fn clone(&self) -> RawInstance<L>
fn clone(&self) -> RawInstance<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 RawInstance<L>
impl<L: Debug> Debug for RawInstance<L>
Source§impl<L: Default> Default for RawInstance<L>
impl<L: Default> Default for RawInstance<L>
Source§fn default() -> RawInstance<L>
fn default() -> RawInstance<L>
Returns the “default value” for a type. Read more
Source§impl<'a, L> From<&'a RawInstance<L>> for ElementRef<'a, L>
impl<'a, L> From<&'a RawInstance<L>> for ElementRef<'a, L>
Source§fn from(value: &'a RawInstance<L>) -> Self
fn from(value: &'a RawInstance<L>) -> Self
Converts to this type from the input type.
Source§impl<L> From<RawInstance<L>> for Element<L>
impl<L> From<RawInstance<L>> for Element<L>
Source§fn from(value: RawInstance<L>) -> Self
fn from(value: RawInstance<L>) -> Self
Converts to this type from the input type.
Source§impl<L: PartialEq> LayerBbox<L> for RawInstance<L>
impl<L: PartialEq> LayerBbox<L> for RawInstance<L>
Source§impl<L: PartialEq> PartialEq for RawInstance<L>
impl<L: PartialEq> PartialEq for RawInstance<L>
Source§impl<L> TransformMut for RawInstance<L>
impl<L> TransformMut for RawInstance<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 RawInstance<L>
impl<L: Clone> TransformRef for RawInstance<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 RawInstance<L>
impl<L> TranslateMut for RawInstance<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 RawInstance<L>
impl<L: Clone> TranslateRef for RawInstance<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 RawInstance<L>
Auto Trait Implementations§
impl<L> Freeze for RawInstance<L>
impl<L> RefUnwindSafe for RawInstance<L>where
L: RefUnwindSafe,
impl<L> Send for RawInstance<L>
impl<L> Sync for RawInstance<L>
impl<L> Unpin for RawInstance<L>
impl<L> UnwindSafe for RawInstance<L>where
L: RefUnwindSafe,
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<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<S, T> DrawBoxed<S> for T
impl<S, T> DrawBoxed<S> for T
Source§fn draw_boxed(self: Box<T>, recv: &mut DrawReceiver<S>) -> Result<(), Error>
fn draw_boxed(self: Box<T>, recv: &mut DrawReceiver<S>) -> Result<(), Error>
Draws
self
inside recv
.§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