-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ (main.rs): add new main entry point for the application
♻️ (lib.rs): refactor functions to use slices instead of vectors for better performance ✅ (tests.rs): update tests to use slices instead of vectors
- Loading branch information
1 parent
3f26001
commit 4a7ba6e
Showing
4 changed files
with
34 additions
and
13 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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// pub mod isin; | ||
use l3bin::Isin; | ||
|
||
fn main() { | ||
let isin = Isin::new(18); | ||
|
||
let res = isin.bin2bounds(&[367]); | ||
|
||
println!("{:?}", res); | ||
} |
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
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
use l3bin::Isin; | ||
|
||
fn main() { | ||
let isin = Isin::new(18); | ||
|
||
let res = isin.bin2bounds(&[367]); | ||
|
||
println!("{:?}", res); | ||
|
||
println!("{:?}", isin.lonlat2bin(&[78.0], &[-36.0])); | ||
} |
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