use-net-label 0.0.1

Primitive electronic net label vocabulary for RustUse
Documentation
  • Coverage
  • 72%
    18 out of 25 items documented1 out of 15 items with examples
  • Size
  • Source code size: 11.01 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 773.24 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 4s Average build duration of successful builds.
  • all releases: 4s 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-net-label

Primitive electrical net labeling vocabulary.

use-net-label stores labels such as GND, AGND, DGND, VCC, 3V3, 5V, VIN, SDA, SCL, MISO, MOSI, CLK, and RESET. It preserves label text and does not infer electrical behavior, assign voltages, or parse complete schematic netlists.

Example

use use_net_label::{GroundKind, NetLabel, SignalName};

let ground = NetLabel::new("GND")?;
let signal = SignalName::new("SDA")?;

assert!(ground.is_ground());
assert_eq!(signal.as_str(), "SDA");
assert_eq!("analog-ground".parse::<GroundKind>()?, GroundKind::AnalogGround);
# Ok::<(), Box<dyn std::error::Error>>(())

Scope

Use this crate for descriptive net labels and signal names. Circuit netlist parsing, voltage assignment, and electrical inference are out of scope.