Skip to content
Snippets Groups Projects
lib.rs 748 B
Newer Older
  • Learn to ignore specific revisions
  • Carl Lerche's avatar
    Carl Lerche committed
    #![crate_name = "bytes"]
    
    #![deny(warnings)]
    
    Carl Lerche's avatar
    Carl Lerche committed
    #[macro_use]
    extern crate log;
    
    Carl Lerche's avatar
    Carl Lerche committed
    extern crate byteorder;
    
    
    Carl Lerche's avatar
    Carl Lerche committed
    // Implementation in here
    mod imp;
    
    // TODO: delete
    mod alloc;
    
    Carl Lerche's avatar
    Carl Lerche committed
    pub use imp::buf::{Buf, MutBuf, IntoBuf};
    
    Carl Lerche's avatar
    Carl Lerche committed
    pub use imp::bytes::Bytes;
    
    pub mod buf {
    
        //! Traits, helpers, and type definitions for working with buffers.
    
    
    Carl Lerche's avatar
    Carl Lerche committed
        pub use imp::buf::{
            Source,
            Sink,
            Reader,
            ReadExt,
            Writer,
            WriteExt,
            Fmt,
        };
    
        pub use imp::buf::slice::SliceBuf;
    
    Carl Lerche's avatar
    Carl Lerche committed
        pub use imp::buf::append::AppendBuf;
        pub use imp::buf::block::{BlockBuf, BlockBufCursor};
    
    Carl Lerche's avatar
    Carl Lerche committed
        pub use imp::buf::bound::{BoundBuf};
    
    Carl Lerche's avatar
    Carl Lerche committed
        pub use imp::buf::ring::RingBuf;
        pub use imp::buf::take::Take;
        pub use imp::bytes::BytesBuf;
    }