# Struct ethcore::evm::factory::Factory [−] [src]

    pub struct Factory { /* fields omitted */ }

Evm factory. Creates appropriate Evm.

## Methods

### `impl Factory`
[src]

#### `fn create(&self, gas: U256) -> Box<Evm>`

Create fresh instance of VM Might choose implementation depending on supplied gas.

#### `fn new(evm: VMType, cache_size: usize) -> Self`

Create new instance of specific `VMType` factory, with a size in bytes for caching jump destinations.

## Trait Implementations

### `impl Clone for Factory`
[src]

#### `fn clone(&self) -> Factory`

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

### `impl Default for Factory`
[src]

#### `fn default() -> Factory`

Returns native rust evm factory

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