# Trait ethcore_ipc::binary::BinaryConvertable [−] [src]

    pub trait BinaryConvertable: Sized {
        fn to_bytes(&self,
                buffer: &mut [u8],
                length_stack: &mut VecDeque<usize>)
                -> Result<(), BinaryConvertError>;
        fn from_bytes(buffer: &[u8],
                  length_stack: &mut VecDeque<usize>)
                  -> Result<Self, BinaryConvertError>;

        fn size(&self) -> usize { ... }
        fn from_empty_bytes() -> Result<Self, BinaryConvertError> { ... }
        fn len_params() -> usize { ... }
    }

## Required Methods

### `fn to_bytes(&self,
buffer: &mut [u8],
length_stack: &mut VecDeque<usize>)
-> Result<(), BinaryConvertError>`

### `fn from_bytes(buffer: &[u8],
length_stack: &mut VecDeque<usize>)
-> Result<Self, BinaryConvertError>`

## Provided Methods

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

### `fn from_empty_bytes() -> Result<Self, BinaryConvertError>`

### `fn len_params() -> usize`

## Implementors

- `impl<T> BinaryConvertable for Option<T> where T: BinaryConvertable`
- `impl<E: BinaryConvertable> BinaryConvertable for Result<(), E>`
- `impl<R: BinaryConvertable> BinaryConvertable for Result<R, ()>`
- `impl<R: BinaryConvertable, E: BinaryConvertable> BinaryConvertable for Result<R, E>`
- `impl<K, V> BinaryConvertable for BTreeMap<K, V> where K: BinaryConvertable + Ord, V: BinaryConvertable`
- `impl<T> BinaryConvertable for VecDeque<T> where T: BinaryConvertable`
- `impl<T> BinaryConvertable for Vec<T> where T: BinaryConvertable`
- `impl BinaryConvertable for String`
- `impl<T> BinaryConvertable for Range<T> where T: BinaryConvertable`
- `impl<T> BinaryConvertable for RefCell<T> where T: BinaryConvertable`
- `impl<T> BinaryConvertable for Cell<T> where T: BinaryConvertable + Copy`
- `impl BinaryConvertable for Vec<u8>`
- `impl BinaryConvertable for u16 where u16: Copy`
- `impl BinaryConvertable for u64 where u64: Copy`
- `impl BinaryConvertable for u32 where u32: Copy`
- `impl BinaryConvertable for usize where usize: Copy`
- `impl BinaryConvertable for i32 where i32: Copy`
- `impl BinaryConvertable for bool where bool: Copy`
- `impl BinaryConvertable for U256 where U256: Copy`
- `impl BinaryConvertable for U512 where U512: Copy`
- `impl BinaryConvertable for H256 where H256: Copy`
- `impl BinaryConvertable for H512 where H512: Copy`
- `impl BinaryConvertable for H2048 where H2048: Copy`
- `impl BinaryConvertable for Address where Address: Copy`
- `impl BinaryConvertable for BinHandshake where BinHandshake: Copy`
- `impl BinaryConvertable for BinVersion where BinVersion: Copy`
- `impl BinaryConvertable for Version`

# 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`)