# Enum ethcore::account_diff::Diff [−] [src]

    pub enum Diff<T> where T: Eq + BinaryConvertable {
        Same,
        Born(T),
        Changed(T, T),
        Died(T),
    }

Diff type for specifying a change (or not).

## Variants

`Same`

Both sides are the same.

`Born(T)`

Left (pre, source) side doesn't include value, right side (post, destination) does.

`Changed(T, T)`

Both sides include data; it chaged value between them.

`Died(T)`

Left (pre, source) side does include value, right side (post, destination) does not.

## Methods

### `impl<T> Diff<T> where T: Eq + BinaryConvertable`
[src]

#### `fn new(pre: T, post: T) -> Self`

Construct new object with given `pre` and `post`.

#### `fn pre(&self) -> Option<&T>`

Get the before value, if there is one.

#### `fn post(&self) -> Option<&T>`

Get the after value, if there is one.

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

Determine whether there was a change or not.

## Trait Implementations

### `impl<T: Debug> Debug for Diff<T> where T: Eq + BinaryConvertable`
[src]

#### `fn fmt(&self, __arg_0: &mut Formatter) -> Result`

Formats the value using the given formatter.

### `impl<T: PartialEq> PartialEq for Diff<T> where T: Eq + BinaryConvertable`
[src]

#### `fn eq(&self, __arg_0: &Diff<T>) -> bool`

This method tests for `self` and `other` values to be equal, and is used by `==`. Read more

#### `fn ne(&self, __arg_0: &Diff<T>) -> bool`

This method tests for `!=`.

### `impl<T: Eq> Eq for Diff<T> where T: Eq + BinaryConvertable`
[src]

### `impl<T: Clone> Clone for Diff<T> where T: Eq + BinaryConvertable`
[src]

#### `fn clone(&self) -> Diff<T>`

Returns a copy of the value. Read more

#### `fn clone_from(&mut self, source: &Self)`
1.0.0

Performs copy-assignment from `source`. Read more

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