forked from bincode-org/bincode
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bumped virtue to 0.0.13 (bincode-org#626)
Co-authored-by: Victor Koenders <[email protected]>
- Loading branch information
1 parent
c623d81
commit 09d256b
Showing
6 changed files
with
149 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,3 +35,6 @@ mod issue_570; | |
|
||
#[path = "issues/issue_592.rs"] | ||
mod issue_592; | ||
|
||
#[path = "issues/issue_614.rs"] | ||
mod issue_614; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#![cfg(feature = "derive")] | ||
|
||
use bincode::{Decode, Encode}; | ||
|
||
#[derive(Encode, Decode, Clone)] | ||
pub struct A; | ||
#[derive(Encode, Decode, Clone)] | ||
pub struct B<T> | ||
where | ||
T: Clone + Encode + Decode, | ||
{ | ||
pub t: T, | ||
} | ||
|
||
#[derive(Encode, Decode)] | ||
pub struct MyStruct<T> | ||
where | ||
T: Clone + Encode + Decode, | ||
{ | ||
pub a: A, | ||
pub b: B<T>, | ||
} |