Skip to content

Commit 4079dc6

Browse files
committed
update to version 0.2.0
1 parent c82f1d7 commit 4079dc6

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "bit_seq"
3-
version = "0.1.2"
3+
version = "0.2.0"
44
authors = ["Johannes Zottele [email protected]"]
55
edition = "2021"
66

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,15 @@ assert_eq!(t, 0b1_0_11);
4747
let var = 0xf;
4848
let t = bseq!(10 var:2);
4949
assert_eq!(t, 0b10_11);
50+
51+
// Using mixed variable types
52+
let var_64: u64 = 0xf;
53+
let var_16: u16 = 0xf;
54+
let t = bseq_8!(var_16:4 var_64:4);
55+
assert_eq!(t, 0xff);
56+
57+
// Using unary operators
58+
assert_eq!(bseq!(!0:6), 0b111111);
5059
```
5160

5261
## Documentation

0 commit comments

Comments
 (0)