# Trait ethcore::block::IsBlock [−] [src]

    pub trait IsBlock {
        fn block(&self) -> &ExecutedBlock;

        fn to_base(&self) -> Block { ... }
        fn header(&self) -> &Header { ... }
        fn state(&self) -> &State { ... }
        fn transactions(&self) -> &[SignedTransaction] { ... }
        fn receipts(&self) -> &[Receipt] { ... }
        fn traces(&self) -> &Option<Vec<Vec<FlatTrace>>> { ... }
        fn uncles(&self) -> &[Header] { ... }
    }

Trait for a object that is a `ExecutedBlock`.

## Required Methods

### `fn block(&self) -> &ExecutedBlock`

Get the `ExecutedBlock` associated with this object.

## Provided Methods

### `fn to_base(&self) -> Block`

Get the base `Block` object associated with this.

### `fn header(&self) -> &Header`

Get the header associated with this object's block.

### `fn state(&self) -> &State`

Get the final state associated with this object's block.

### `fn transactions(&self) -> &[SignedTransaction]`

Get all information on transactions in this block.

### `fn receipts(&self) -> &[Receipt]`

Get all information on receipts in this block.

### `fn traces(&self) -> &Option<Vec<Vec<FlatTrace>>>`

Get all information concerning transaction tracing in this block.

### `fn uncles(&self) -> &[Header]`

Get all uncles in this block.

## Implementors

- `impl IsBlock for ExecutedBlock`
- `impl<'x> IsBlock for OpenBlock<'x>`
- `impl<'x> IsBlock for ClosedBlock`
- `impl<'x> IsBlock for LockedBlock`
- `impl IsBlock for SealedBlock`

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