Crate bytes [−] [src]
Modules
| alloc | |
| traits |
All traits are re-exported here to allow glob imports. |
Structs
| ByteBuf |
A |
| Bytes |
A specialized |
| MutByteBuf | |
| MutSliceBuf | |
| ROByteBuf |
Same as |
| RingBuf |
Buf backed by a continous chunk of memory. Maintains a read cursor and a write cursor. When reads and writes reach the end of the allocated buffer, wraps around to the start. |
| Rope |
An immutable sequence of bytes formed by concatenation of other |
| RopeBuf | |
| SeqByteStr | |
| SliceBuf | |
| SmallByteStr | |
| SmallByteStrBuf | |
| Take |
Enums
| BufError |
Traits
| Buf |
A trait for values that provide sequential read access to bytes. |
| BufExt |
An extension trait providing extra functions applicable to all |
| ByteStr |
An immutable sequence of bytes. Operations will not mutate the original value. Since only immutable access is permitted, operations do not require copying (though, sometimes copying will happen as an optimization). |
| MutBuf |
A trait for values that provide sequential write access to bytes. |
| MutBufExt |
An extension trait providing extra functions applicable to all |
| Sink |
A value that reads bytes from a Buf into itself |
| Source |
A value that writes bytes from itself into a |
| ToBytes |