pub struct TransistorSpec { /* private fields */ }Expand description
A descriptive transistor specification.
Implementations§
Source§impl TransistorSpec
impl TransistorSpec
Sourcepub const fn new(kind: TransistorKind) -> Self
pub const fn new(kind: TransistorKind) -> Self
Creates a transistor spec from a transistor kind.
Sourcepub fn kind(&self) -> TransistorKind
pub fn kind(&self) -> TransistorKind
Returns the transistor kind.
Trait Implementations§
Source§impl Clone for TransistorSpec
impl Clone for TransistorSpec
Source§fn clone(&self) -> TransistorSpec
fn clone(&self) -> TransistorSpec
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TransistorSpec
impl Debug for TransistorSpec
Source§impl Hash for TransistorSpec
impl Hash for TransistorSpec
Source§impl Ord for TransistorSpec
impl Ord for TransistorSpec
Source§fn cmp(&self, other: &TransistorSpec) -> Ordering
fn cmp(&self, other: &TransistorSpec) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TransistorSpec
impl PartialEq for TransistorSpec
Source§fn eq(&self, other: &TransistorSpec) -> bool
fn eq(&self, other: &TransistorSpec) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for TransistorSpec
impl PartialOrd for TransistorSpec
impl Eq for TransistorSpec
impl StructuralPartialEq for TransistorSpec
Auto Trait Implementations§
impl Freeze for TransistorSpec
impl RefUnwindSafe for TransistorSpec
impl Send for TransistorSpec
impl Sync for TransistorSpec
impl Unpin for TransistorSpec
impl UnsafeUnpin for TransistorSpec
impl UnwindSafe for TransistorSpec
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