pub struct NestedInstance<T: Schematic>(/* private fields */);
Expand description
A nested view of an Instance
.
Implementations§
Source§impl<T: Schematic> NestedInstance<T>
impl<T: Schematic> NestedInstance<T>
Sourcepub fn io(&self) -> NestedView<IoTerminalBundle<T>>
pub fn io(&self) -> NestedView<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.
Sourcepub fn path(&self) -> &InstancePath
pub fn path(&self) -> &InstancePath
Returns the path to this NestedInstance
.
Trait Implementations§
Source§impl<B: Schematic> Clone for NestedInstance<B>
impl<B: Schematic> Clone for NestedInstance<B>
Source§impl<T: Schematic> Deref for NestedInstance<T>
impl<T: Schematic> Deref for NestedInstance<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 NestedInstance<B>
impl<B: Schematic> HasNestedView for NestedInstance<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.
Source§impl<T, S, A> Save<S, A> for NestedInstance<T>where
T: Schematic,
S: Simulator,
A: Analysis,
NestedView<T::NestedData>: Save<S, A>,
NestedView<IoTerminalBundle<T>>: Save<S, A>,
impl<T, S, A> Save<S, A> for NestedInstance<T>where
T: Schematic,
S: Simulator,
A: Analysis,
NestedView<T::NestedData>: Save<S, A>,
NestedView<IoTerminalBundle<T>>: Save<S, A>,
Source§type SaveKey = (<<<T as Schematic>::NestedData as HasNestedView>::NestedView as Save<S, A>>::SaveKey, <<<<<T as Block>::Io as HasBundleKind>::BundleKind as HasTerminalBundle>::TerminalBundle as HasNestedView>::NestedView as Save<S, A>>::SaveKey)
type SaveKey = (<<<T as Schematic>::NestedData as HasNestedView>::NestedView as Save<S, A>>::SaveKey, <<<<<T as Block>::Io as HasBundleKind>::BundleKind as HasTerminalBundle>::TerminalBundle as HasNestedView>::NestedView as Save<S, A>>::SaveKey)
The key type used to address the saved output within the analysis. Read more
Source§type Saved = NestedInstanceOutput<<<<T as Schematic>::NestedData as HasNestedView>::NestedView as Save<S, A>>::Saved, <<<<<T as Block>::Io as HasBundleKind>::BundleKind as HasTerminalBundle>::TerminalBundle as HasNestedView>::NestedView as Save<S, A>>::Saved>
type Saved = NestedInstanceOutput<<<<T as Schematic>::NestedData as HasNestedView>::NestedView as Save<S, A>>::Saved, <<<<<T as Block>::Io as HasBundleKind>::BundleKind as HasTerminalBundle>::TerminalBundle as HasNestedView>::NestedView as Save<S, A>>::Saved>
The saved data associated with things object.
Auto Trait Implementations§
impl<T> !Freeze for NestedInstance<T>
impl<T> !RefUnwindSafe for NestedInstance<T>
impl<T> Send for NestedInstance<T>
impl<T> Sync for NestedInstance<T>
impl<T> Unpin for NestedInstance<T>
impl<T> !UnwindSafe for NestedInstance<T>
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