pub struct NetlisterInstance<'a, S: Schema, W> { /* private fields */ }Expand description
An instance of a netlister.
Implementations§
Source§impl<'a, S: Schema, W> NetlisterInstance<'a, S, W>
impl<'a, S: Schema, W> NetlisterInstance<'a, S, W>
Sourcepub fn new(
schema: &'a S,
lib: &'a Library<S>,
out: &'a mut W,
opts: NetlistOptions<'a>,
) -> Self
pub fn new( schema: &'a S, lib: &'a Library<S>, out: &'a mut W, opts: NetlistOptions<'a>, ) -> Self
Creates a new NetlisterInstance.
Source§impl<S: HasSpiceLikeNetlist, W: Write> NetlisterInstance<'_, S, W>
impl<S: HasSpiceLikeNetlist, W: Write> NetlisterInstance<'_, S, W>
Sourcepub fn export(self) -> Result<NetlistLibConversion>
pub fn export(self) -> Result<NetlistLibConversion>
Exports a SCIR library to the output stream as a SPICE-like netlist.
Auto Trait Implementations§
impl<'a, S, W> Freeze for NetlisterInstance<'a, S, W>
impl<'a, S, W> RefUnwindSafe for NetlisterInstance<'a, S, W>
impl<'a, S, W> Send for NetlisterInstance<'a, S, W>
impl<'a, S, W> Sync for NetlisterInstance<'a, S, W>
impl<'a, S, W> Unpin for NetlisterInstance<'a, S, W>
impl<'a, S, W> !UnwindSafe for NetlisterInstance<'a, S, W>
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
§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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§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