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
# A set of sane, extremely close to "standard rust" style options | |
# Mostly just utilizes some common convention that is not currently | |
# agressively formatted by rustfmt, because I agree with said | |
# convention. | |
# Each option is commented with what effect it actually has. | |
# Enable unstable features | |
unstable_features = true | |
# Max blank lines between any statement |
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
/*************************************************************************** | |
* Copyright (C) 2005 by Ambertation * | |
* quaxi@ambertation.de * | |
* * | |
* This program is free software; you can redistribute it and/or modify * | |
* it under the terms of the GNU General Public License as published by * | |
* the Free Software Foundation; either version 2 of the License, or * | |
* (at your option) any later version. * | |
* * | |
* This program is distributed in the hope that it will be useful, * |
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
use bitvec::bitarr; | |
use bitvec::field::BitField; | |
use bitvec::order::Msb0; | |
use bitvec::view::BitView; | |
use criterion::{black_box, criterion_group, criterion_main, BenchmarkId, Criterion}; | |
// filler for the enum variant used here | |
struct ShortCommand { | |
offset: u16, | |
length: u8, |