-
Notifications
You must be signed in to change notification settings - Fork 161
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature: Enable feature-flag
type-alias
to use type shortcuts
For example: ```rust,ignore use openraft::alias::SnapshotDataOf; struct MyTypeConfig; impl RaftTypeconfig For MyTypeConfig { /*...*/ } // The following two lines are equivalent: let snapshot_data: SnapshotDataOf<MyTypeConfig>; let snapshot_data: <MyTypeConfig as RaftTypeConfig>::SnapshotData; ``` Note that the type shortcuts are not stable and may be changed in the future. It is also a good idea to copy the type shortcuts to your own codebase if you want to use them.
- Loading branch information
1 parent
ca156ea
commit 08f258a
Showing
5 changed files
with
49 additions
and
22 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
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