Skip to content

Commit 9e436e9

Browse files
committed
Completely overhaul BitRecorder implementation
The new version is simpler and dramatically faster than the old.
1 parent 6141a65 commit 9e436e9

File tree

3 files changed

+174
-185
lines changed

3 files changed

+174
-185
lines changed

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ macro_rules! define_numeric {
487487

488488
/// This trait extends many common unsigned integer types
489489
/// so that they can be used with the bitstream handling traits.
490-
pub trait UnsignedInteger: Numeric + Into<crate::write::UnsignedValue> {
490+
pub trait UnsignedInteger: Numeric {
491491
/// This type's most-significant bit
492492
const MSB_BIT: Self;
493493

@@ -774,7 +774,7 @@ macro_rules! define_unsigned_integer {
774774
/// This trait was formerly named `SignedNumeric` in 2.X.X code.
775775
/// If backwards-compatibility is needed one can
776776
/// import `SignedInteger` as `SignedNumeric`.
777-
pub trait SignedInteger: Numeric + Into<crate::write::SignedValue> {
777+
pub trait SignedInteger: Numeric {
778778
/// The unsigned variant of ourself
779779
type Unsigned: UnsignedInteger<Signed = Self>;
780780

0 commit comments

Comments
 (0)