# Trait crypto::buffer::WriteBuffer [−] [src]

    pub trait WriteBuffer {
        fn is_empty(&self) -> bool;
        fn is_full(&self) -> bool;
        fn remaining(&self) -> usize;
        fn capacity(&self) -> usize;
        fn rewind(&mut self, distance: usize);
        fn reset(&mut self);
        fn peek_read_buffer(&mut self) -> RefReadBuffer;
        fn take_next(&mut self, count: usize) -> &mut [u8];
        fn take_read_buffer(&mut self) -> RefReadBuffer;

        fn position(&self) -> usize { ... }
        fn take_remaining(&mut self) -> &mut [u8] { ... }
    }

## Required Methods

### `fn is_empty(&self) -> bool`

### `fn is_full(&self) -> bool`

### `fn remaining(&self) -> usize`

### `fn capacity(&self) -> usize`

### `fn rewind(&mut self, distance: usize)`

### `fn reset(&mut self)`

### `fn peek_read_buffer(&mut self) -> RefReadBuffer`

### `fn take_next(&mut self, count: usize) -> &mut [u8]`

### `fn take_read_buffer(&mut self) -> RefReadBuffer`

## Provided Methods

### `fn position(&self) -> usize`

### `fn take_remaining(&mut self) -> &mut [u8]`

## Implementors

- `impl<'a> WriteBuffer for RefWriteBuffer<'a>`
- `impl<'a> WriteBuffer for BorrowedWriteBuffer<'a>`
- `impl WriteBuffer for OwnedWriteBuffer`

# Help

## Keyboard Shortcuts

?
  Show this help dialog
S
  Focus the search field
⇤
  Move up in search results
⇥
  Move down in search results
⏎
  Go to active search result
+
  Collapse/expand all sections

## Search Tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g. `vec -> usize` or `* -> vec`)