Files
bytes/src/lib.rs
T

35 lines
443 B
Rust
Raw Normal View History

2015-01-30 00:04:33 -08:00
#![crate_name = "bytes"]
#![deny(warnings)]
2016-07-20 13:27:41 +02:00
extern crate stable_heap;
2015-04-07 23:40:00 -07:00
pub mod alloc;
2015-09-25 09:43:58 -07:00
pub mod buf;
pub mod str;
2015-04-07 23:40:00 -07:00
pub use buf::{
Buf,
MutBuf,
ByteBuf,
MutByteBuf,
RingBuf,
ROByteBuf,
2015-07-28 12:51:24 -07:00
Take,
2016-06-08 14:48:49 -07:00
ReadExt,
WriteExt,
2015-04-07 23:40:00 -07:00
};
pub use str::{
ByteStr,
Bytes,
Rope,
RopeBuf,
SeqByteStr,
SmallByteStr,
SmallByteStrBuf,
ToBytes,
};
use std::u32;
const MAX_CAPACITY: usize = u32::MAX as usize;