-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
1 addition
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -96,39 +96,12 @@ | |
//! } | ||
//! ``` | ||
//! | ||
//! Which will result in values in the file "data.txt" as | ||
//! | ||
//! RES0402_1.00, Vishay, 0402, 1/16 | ||
//! | ||
//! RES0402_1.02, Vishay, 0402, 1/16 | ||
//! | ||
//! RES0402_1.05, Vishay, 0402, 1/16 | ||
//! | ||
//! | ||
//! . . . . . . . . . . . . . . . (omitting values for brevity) | ||
//! | ||
//! | ||
//! | ||
//! RES0402_909K, Vishay, 0402, 1/16 | ||
//! | ||
//! RES0402_931K, Vishay, 0402, 1/16 | ||
//! | ||
//! RES0402_953K, Vishay, 0402, 1/16 | ||
//! | ||
//! RES0402_976K, Vishay, 0402, 1/16 | ||
//! | ||
//----------------------------------------------------------------------------------- | ||
// Licensed under GNU General Public License (GPL). | ||
// Copyright, 206-2020, Atlantix-EDA, Atlantix Engineering <[email protected]> | ||
//----------------------------------------------------------------------------------- | ||
|
||
extern crate generate; | ||
|
||
|
||
extern crate num_traits; | ||
|
||
|
||
use std::fs::OpenOptions; | ||
use std::io::prelude::*; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,5 @@ | ||
//! The generate module. Contains the primary methods for generating Resistor values. | ||
//! The generate library module. Contains the primary methods for generating Resistor values. | ||
//! | ||
//! The `gen_resistor` crate is tested for rustc 1.8 and greater. | ||
//! The num_traits crate is required, 0.2 and greater. | ||
|
||
//pub mod generate; | ||
extern crate num_traits; | ||
|
||
|
@@ -32,17 +27,6 @@ use self::num_traits::Pow; | |
/// | ||
/// *Note*: One may want to have manuf_1, manuf_2, manuf_3, etc. | ||
/// | ||
/// | ||
/// | ||
/// | ||
|
||
//----------------------------------------------------------------------------------- | ||
// Licensed under GNU General Public License (GPL). | ||
// Copyright, 206-2020, Atlantix-EDA, Atlantix Engineering <[email protected]> | ||
//----------------------------------------------------------------------------------- | ||
|
||
|
||
#[derive(Debug, Clone, PartialEq)] | ||
pub struct Resistor { | ||
display: bool, | ||
|