Skip to content

Commit 68ce39d

Browse files
committed
Make BufHandler trait public.
1 parent ee785db commit 68ce39d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/lib.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -471,8 +471,10 @@ impl<T, H: BufHandler<T>> BufferStateMachine<T, H> {
471471
/// Two-part handler for a buffer needing processing.
472472
/// `prepare_buf` is generic and needs no state. Used for sorting.
473473
/// `process_buf` needs exclusive access to the handler, so can do IO.
474-
trait BufHandler<T> {
474+
pub trait BufHandler<T> {
475+
/// Sort the provided buffer.
475476
fn prepare_buf(v: &mut Vec<T>);
477+
/// Process the provided buffer.
476478
fn process_buf(&mut self, v: &mut Vec<T>) -> Result<(), Error>;
477479
}
478480

0 commit comments

Comments
 (0)