commit edcbbf2671dddb7e6bbc01219a0890cd6cb2d8b7 Author: Michael Pfaff Date: Sat May 8 18:31:31 2021 -0400 Initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..96ef6c0 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/target +Cargo.lock diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..c501934 --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,8 @@ +[package] +name = "static_into" +version = "1.0.0" +edition = "2018" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] diff --git a/README.md b/README.md new file mode 100644 index 0000000..e3b1a33 --- /dev/null +++ b/README.md @@ -0,0 +1,4 @@ +# static_into.rs + +A struct-to-value conversion. + diff --git a/src/lib.rs b/src/lib.rs new file mode 100644 index 0000000..c25bb65 --- /dev/null +++ b/src/lib.rs @@ -0,0 +1,5 @@ +/// A struct-to-value conversion. +pub trait StaticInto { + fn static_into() -> T; +} +