use-transistor 0.0.1

Primitive transistor vocabulary for RustUse electronics crates
Documentation
  • Coverage
  • 51.43%
    18 out of 35 items documented1 out of 11 items with examples
  • Size
  • Source code size: 10.76 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 895.48 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 3s Average build duration of successful builds.
  • all releases: 3s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • RustUse/use-electronics
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

use-transistor

Primitive transistor vocabulary.

use-transistor describes BJT/FET kinds, transistor terminal names, and simple specs. It does not simulate transistor behavior, calculate gain, model switching behavior, or implement semiconductor physics.

Example

use use_transistor::{BjtKind, TransistorKind, TransistorSpec, TransistorTerminal};

let spec = TransistorSpec::new(TransistorKind::Bjt(BjtKind::Npn));

assert_eq!(spec.kind(), TransistorKind::Bjt(BjtKind::Npn));
assert_eq!("collector".parse::<TransistorTerminal>()?, TransistorTerminal::Collector);
# Ok::<(), Box<dyn std::error::Error>>(())

Scope

Use this crate for descriptive transistor metadata. Behavior models and semiconductor calculations are out of scope.