Browse Source

Initial commit

master v1.0.0
Michael Pfaff 6 months ago
commit
edcbbf2671
Signed by: michael GPG Key ID: E53B118B12B5C7F9
  1. 2
      .gitignore
  2. 8
      Cargo.toml
  3. 4
      README.md
  4. 5
      src/lib.rs

2
.gitignore

@ -0,0 +1,2 @@
/target
Cargo.lock

8
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]

4
README.md

@ -0,0 +1,4 @@
# static_into.rs
A struct-to-value conversion.

5
src/lib.rs

@ -0,0 +1,5 @@
/// A struct-to-value conversion.
pub trait StaticInto<T> {
fn static_into() -> T;
}
Loading…
Cancel
Save