Commit f1713e4f authored by thiolliere's avatar thiolliere Committed by Bastian Köcher
Browse files

move compact to its own file (#98)

* move compact to its own file

* fix bit vec and doc test

* add back derive

* address comments
parent 215cda34
Pipeline #40250 passed with stages
in 24 minutes and 51 seconds
......@@ -19,7 +19,8 @@ use std::mem;
use bitvec::{vec::BitVec, bits::Bits, cursor::Cursor, slice::BitSlice, boxed::BitBox};
use byte_slice_cast::{AsByteSlice, ToByteSlice, FromByteSlice, Error as FromByteSliceError};
use crate::codec::{Encode, Decode, Input, Output, Compact, Error};
use crate::codec::{Encode, Decode, Input, Output, Error};
use crate::compact::Compact;
impl From<FromByteSliceError> for Error {
fn from(e: FromByteSliceError) -> Error {
......
This diff is collapsed.
This diff is collapsed.
......@@ -235,11 +235,16 @@ pub mod alloc {
}
mod codec;
mod compact;
mod joiner;
mod keyedvec;
#[cfg(feature = "bit-vec")]
mod bit_vec;
pub use self::codec::{Input, Output, Error, Encode, Decode, Codec, Compact, HasCompact, EncodeAsRef, CompactAs, EncodeAppend};
pub use self::codec::{
Input, Output, Error, Encode, Decode, Codec, EncodeAsRef, EncodeAppend, WrapperTypeEncode,
WrapperTypeDecode, OptionBool,
};
pub use self::compact::{Compact, HasCompact, CompactAs};
pub use self::joiner::Joiner;
pub use self::keyedvec::KeyedVec;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment