pub struct Instance<B: Schematic> { /* private fields */ }
Expand description
An instance of a schematic cell.
Implementations§
Source§impl<T: Schematic> Instance<T>
impl<T: Schematic> Instance<T>
Sourcepub fn io(&self) -> &IoTerminalBundle<T>
pub fn io(&self) -> &IoTerminalBundle<T>
The ports of this instance.
Used for node connection purposes.
Sourcepub fn try_data(&self) -> Result<NestedView<T::NestedData>>
pub fn try_data(&self) -> Result<NestedView<T::NestedData>>
Tries to access the underlying cell data.
Returns an error if one was thrown during generation.
Sourcepub fn data(&self) -> NestedView<T::NestedData>
pub fn data(&self) -> NestedView<T::NestedData>
Sourcepub fn block(&self) -> &T
pub fn block(&self) -> &T
Tries to access the underlying block used to create this instance’s cell.
§Panics
Panics if an error was thrown during generation.
Sourcepub fn path(&self) -> &InstancePath
pub fn path(&self) -> &InstancePath
Returns the path to this Instance
.
Trait Implementations§
Source§impl<T: Schematic> Deref for Instance<T>
impl<T: Schematic> Deref for Instance<T>
Source§type Target = <<T as Schematic>::NestedData as HasNestedView>::NestedView
type Target = <<T as Schematic>::NestedData as HasNestedView>::NestedView
The resulting type after dereferencing.
Source§impl<B: Schematic> HasNestedView for Instance<B>
impl<B: Schematic> HasNestedView for Instance<B>
Source§type NestedView = NestedInstance<B>
type NestedView = NestedInstance<B>
A view of the nested object. Read more
Source§fn nested_view(&self, parent: &InstancePath) -> NestedView<Self>
fn nested_view(&self, parent: &InstancePath) -> NestedView<Self>
Creates a nested view of the object given a parent node.
Auto Trait Implementations§
impl<B> !Freeze for Instance<B>
impl<B> !RefUnwindSafe for Instance<B>
impl<B> Send for Instance<B>
impl<B> Sync for Instance<B>
impl<B> Unpin for Instance<B>
impl<B> !UnwindSafe for Instance<B>
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