[−][src]Enum spice21::circuit::Comp
Component Enum
Circuits are primarily composed of a vector of these.
From and Into methods for each variant are generated by enum_dispatch
macros.
Variants
V(Vi)
I(Ii)
R(Ri)
C(Ci)
D(DiodeI)
Mos(Mosi)
Module(ModuleI)
Implementations
impl Comp
[src]
pub fn vdc<S: Into<String>>(name: S, vdc: f64, p: NodeRef, n: NodeRef) -> Comp
[src]
Replacement for deprecated original V
enum variant
pub fn idc<S: Into<String>>(name: S, dc: f64, p: NodeRef, n: NodeRef) -> Comp
[src]
pub fn r<S: Into<String>>(name: S, g: f64, p: NodeRef, n: NodeRef) -> Comp
[src]
pub fn c<S: Into<String>>(name: S, c: f64, p: NodeRef, n: NodeRef) -> Comp
[src]
pub fn from(c: CompProto) -> Self
[src]
Convert from protobuf-generated classes
Trait Implementations
impl From<Ci> for Comp
[src]
impl From<Diode> for Comp
[src]
impl From<Ii> for Comp
[src]
impl From<ModuleInstance> for Comp
[src]
impl From<Mosi> for Comp
[src]
impl From<Ri> for Comp
[src]
impl From<Vi> for Comp
[src]
impl TryInto<Ci> for Comp
[src]
type Error = &'static str
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<Ci, Self::Error>
[src]
impl TryInto<Diode> for Comp
[src]
type Error = &'static str
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<DiodeI, Self::Error>
[src]
impl TryInto<Ii> for Comp
[src]
type Error = &'static str
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<Ii, Self::Error>
[src]
impl TryInto<ModuleInstance> for Comp
[src]
type Error = &'static str
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<ModuleI, Self::Error>
[src]
impl TryInto<Mosi> for Comp
[src]
type Error = &'static str
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<Mosi, Self::Error>
[src]
impl TryInto<Ri> for Comp
[src]
type Error = &'static str
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<Ri, Self::Error>
[src]
impl TryInto<Vi> for Comp
[src]
Auto Trait Implementations
impl RefUnwindSafe for Comp
[src]
impl Send for Comp
[src]
impl Sync for Comp
[src]
impl Unpin for Comp
[src]
impl UnwindSafe for Comp
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,