Browse Source

Testing with subgroups in structs

master
Julio Biason 2 years ago
parent
commit
6db9c25a70
  1. 7
      structsubgroup/Cargo.lock
  2. 8
      structsubgroup/Cargo.toml
  3. 5
      structsubgroup/README.md
  4. 10
      structsubgroup/src/main.rs

7
structsubgroup/Cargo.lock generated

@ -0,0 +1,7 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
version = 3
[[package]]
name = "structsubgroup"
version = "0.1.0"

8
structsubgroup/Cargo.toml

@ -0,0 +1,8 @@
[package]
name = "structsubgroup"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]

5
structsubgroup/README.md

@ -0,0 +1,5 @@
# structsubgroup
Testing if it is possible to have a sub group (block) inside a struct.
The idea is that the subgroup is only available under a certain feature.

10
structsubgroup/src/main.rs

@ -0,0 +1,10 @@
struct Example {
data: String,
{
another: String,
blob: u64,
}
}
fn main() {
println!("Hello, world!");
}
Loading…
Cancel
Save