Skip to content

Commit

Permalink
update to version 0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Jozott00 committed Jun 5, 2023
1 parent c82f1d7 commit 4079dc6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "bit_seq"
version = "0.1.2"
version = "0.2.0"
authors = ["Johannes Zottele official@johannes-zottele.at"]
edition = "2021"

Expand Down
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,15 @@ assert_eq!(t, 0b1_0_11);
let var = 0xf;
let t = bseq!(10 var:2);
assert_eq!(t, 0b10_11);

// Using mixed variable types
let var_64: u64 = 0xf;
let var_16: u16 = 0xf;
let t = bseq_8!(var_16:4 var_64:4);
assert_eq!(t, 0xff);

// Using unary operators
assert_eq!(bseq!(!0:6), 0b111111);
```

## Documentation
Expand Down

0 comments on commit 4079dc6

Please sign in to comment.