Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
bytes-sgx
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Markus Becker
bytes-sgx
Commits
f7f8d6c9
Commit
f7f8d6c9
authored
8 years ago
by
Carl Lerche
Browse files
Options
Downloads
Patches
Plain Diff
Don't re-export everything from `buf` module
parent
87160b62
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/buf/mod.rs
+18
-0
18 additions, 0 deletions
src/buf/mod.rs
src/lib.rs
+8
-3
8 additions, 3 deletions
src/lib.rs
with
26 additions
and
3 deletions
src/buf/mod.rs
+
18
−
0
View file @
f7f8d6c9
//! Utilities for working with buffers.
//!
//! A buffer is any structure that contains a sequence of bytes. The bytes may
//! or may not be stored in contiguous memory. This module contains traits used
//! to abstract over buffers as well as utilities for working with buffer types.
//!
//! # `Buf`, `BufMut`
//!
//! These are the two foundational traits for abstractly working with buffers.
//! They can be thought as iterators for byte structures. They offer additional
//! performance over `Iterator` by providing an API optimized for byte slices.
//!
//! See [`Buf`] and [`BufMut`] for more details.
//!
//! [rope]: https://en.wikipedia.org/wiki/Rope_(data_structure)
//! [`Buf`]: trait.Buf.html
//! [`BufMut`]: trait.BufMut.html
use
std
::{
cmp
,
io
,
usize
};
use
std
::{
cmp
,
io
,
usize
};
mod
buf
;
mod
buf
;
...
...
This diff is collapsed.
Click to expand it.
src/lib.rs
+
8
−
3
View file @
f7f8d6c9
...
@@ -73,17 +73,22 @@
...
@@ -73,17 +73,22 @@
extern
crate
byteorder
;
extern
crate
byteorder
;
mod
buf
;
pub
mod
buf
;
mod
bytes
;
pub
use
buf
::{
pub
use
buf
::{
Buf
,
Buf
,
BufMut
,
BufMut
,
IntoBuf
,
IntoBuf
,
};
#[deprecated(since
=
"0.4.1"
,
note
=
"moved to `buf` module"
)]
#[doc(hidden)]
pub
use
buf
::{
Source
,
Source
,
Reader
,
Reader
,
Writer
,
Writer
,
Take
,
Take
,
};
};
mod
bytes
;
pub
use
bytes
::{
Bytes
,
BytesMut
};
pub
use
bytes
::{
Bytes
,
BytesMut
};
pub
use
byteorder
::{
ByteOrder
,
BigEndian
,
LittleEndian
};
pub
use
byteorder
::{
ByteOrder
,
BigEndian
,
LittleEndian
};
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment