File tree 1 file changed +2
-9
lines changed
1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -817,7 +817,8 @@ impl Iterator for CompactBitsIter<'_> {
817
817
}
818
818
819
819
impl Value {
820
- fn from_bits < I : Iterator < Item = u8 > > (
820
+ /// Decode a value of the given type from its compact bit encoding.
821
+ pub fn from_compact_bits < I : Iterator < Item = u8 > > (
821
822
bits : & mut BitIter < I > ,
822
823
ty : & Final ,
823
824
) -> Result < Self , EarlyEndOfStreamError > {
@@ -872,14 +873,6 @@ impl Value {
872
873
Ok ( result_stack. pop ( ) . unwrap ( ) )
873
874
}
874
875
875
- /// Decode a value of the given type from its compact bit encoding.
876
- pub fn from_compact_bits < I : Iterator < Item = u8 > > (
877
- bits : & mut BitIter < I > ,
878
- ty : & Final ,
879
- ) -> Result < Self , EarlyEndOfStreamError > {
880
- Self :: from_bits ( bits, ty)
881
- }
882
-
883
876
/// Decode a value of the given type from its padded bit encoding.
884
877
pub fn from_padded_bits < I : Iterator < Item = u8 > > (
885
878
bits : & mut BitIter < I > ,
You can’t perform that action at this time.
0 commit comments