pub enum Primitive {
Res2 {
value: ComponentValue,
params: HashMap<UniCase<ArcStr>, ParamValue>,
},
Cap2 {
value: Decimal,
},
Diode2 {
model: ArcStr,
params: HashMap<UniCase<ArcStr>, ParamValue>,
},
Bjt {
model: ArcStr,
params: HashMap<UniCase<ArcStr>, ParamValue>,
has_substrate_port: bool,
},
Mos {
model: ArcStr,
params: HashMap<UniCase<ArcStr>, ParamValue>,
},
RawInstance {
ports: Vec<ArcStr>,
cell: ArcStr,
params: HashMap<UniCase<ArcStr>, ParamValue>,
},
RawInstanceWithCell {
ports: Vec<ArcStr>,
cell: ArcStr,
params: HashMap<UniCase<ArcStr>, ParamValue>,
body: ArcStr,
},
BlackboxInstance {
contents: BlackboxContents,
},
}
Expand description
A SPICE primitive.
Variants§
Res2
Fields
value: ComponentValue
The resistor value.
params: HashMap<UniCase<ArcStr>, ParamValue>
Parameters associated with the resistor.
A resistor primitive with ports “1” and “2” and value value
.
Cap2
Fields
value: Decimal
The capacitor value.
A capacitor primitive with ports “1” and “2” and value value
.
Diode2
Fields
model: ArcStr
The name of the diode model.
params: HashMap<UniCase<ArcStr>, ParamValue>
Parameters associated with the diode.
A diode primitive with ports “1” and “2”.
Bjt
Fields
model: ArcStr
The name of the BJT model.
params: HashMap<UniCase<ArcStr>, ParamValue>
Parameters associated with the BJT.
A BJT primitive with ports “NC”, “NB”, and “NE”.
Optionally has the port “NS”.
Mos
Fields
model: ArcStr
The name of the MOS model.
params: HashMap<UniCase<ArcStr>, ParamValue>
Parameters associated with the MOS primitive.
A MOS primitive with ports “D”, “G”, “S”, and “B”.
RawInstance
Fields
cell: ArcStr
The associated cell.
params: HashMap<UniCase<ArcStr>, ParamValue>
Parameters associated with the raw instance.
A raw instance with an associated cell.
RawInstanceWithCell
Fields
cell: ArcStr
The associated cell.
params: HashMap<UniCase<ArcStr>, ParamValue>
Parameters associated with the raw instance.
body: ArcStr
The body of the associated cell.
A raw instance with an associated cell.
Creates the corresponding SUBCKT with the given body.
BlackboxInstance
Fields
contents: BlackboxContents
The contents of the cell.
An instance with blackboxed contents.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Primitive
impl Send for Primitive
impl Sync for Primitive
impl Unpin for Primitive
impl UnwindSafe for Primitive
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
source§impl<T, U> CustomHardwareType<Flipped<T>> for Uwhere
U: CustomHardwareType<T>,
T: HardwareType,
impl<T, U> CustomHardwareType<Flipped<T>> for Uwhere
U: CustomHardwareType<T>,
T: HardwareType,
source§fn from_layout_type(other: &Flipped<T>) -> U
fn from_layout_type(other: &Flipped<T>) -> U
source§impl<T, U> CustomHardwareType<InOut<T>> for Uwhere
U: CustomHardwareType<T>,
T: HardwareType,
impl<T, U> CustomHardwareType<InOut<T>> for Uwhere
U: CustomHardwareType<T>,
T: HardwareType,
source§fn from_layout_type(other: &InOut<T>) -> U
fn from_layout_type(other: &InOut<T>) -> U
source§impl<T, U> CustomHardwareType<Input<T>> for Uwhere
U: CustomHardwareType<T>,
T: HardwareType,
impl<T, U> CustomHardwareType<Input<T>> for Uwhere
U: CustomHardwareType<T>,
T: HardwareType,
source§fn from_layout_type(other: &Input<T>) -> U
fn from_layout_type(other: &Input<T>) -> U
source§impl<T, U> CustomHardwareType<Output<T>> for Uwhere
U: CustomHardwareType<T>,
T: HardwareType,
impl<T, U> CustomHardwareType<Output<T>> for Uwhere
U: CustomHardwareType<T>,
T: HardwareType,
source§fn from_layout_type(other: &Output<T>) -> U
fn from_layout_type(other: &Output<T>) -> U
§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>
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<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>
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
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)
&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)
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§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>
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>
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>
T
in a tonic::Request