# Struct variance::InvariantLifetime [−] [src]

    pub struct InvariantLifetime<'id>(_);

A marker for forcing `'id` to be considered invariant.

## Methods

### `impl<'id> InvariantLifetime<'id>`

#### `fn new() -> Self`

Create a new InvariantLifetime marker instance.

All instances of InvariantLifetime with the same lifetime are equivalent.

## Trait Implementations

### Derived Implementations

### `impl<'id> Hash for InvariantLifetime<'id>`

#### `fn hash<__H: Hasher>(&self, __arg_0: &mut __H)`

#### `fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher` 1.3.0

### `impl<'id> Ord for InvariantLifetime<'id>`

#### `fn cmp(&self, __arg_0: &InvariantLifetime<'id>) -> Ordering`

### `impl<'id> Eq for InvariantLifetime<'id>`

### `impl<'id> PartialOrd for InvariantLifetime<'id>`

#### `fn partial_cmp(&self, __arg_0: &InvariantLifetime<'id>) -> Option<Ordering>`

#### `fn lt(&self, __arg_0: &InvariantLifetime<'id>) -> bool`

#### `fn le(&self, __arg_0: &InvariantLifetime<'id>) -> bool`

#### `fn gt(&self, __arg_0: &InvariantLifetime<'id>) -> bool`

#### `fn ge(&self, __arg_0: &InvariantLifetime<'id>) -> bool`

### `impl<'id> PartialEq for InvariantLifetime<'id>`

#### `fn eq(&self, __arg_0: &InvariantLifetime<'id>) -> bool`

#### `fn ne(&self, __arg_0: &InvariantLifetime<'id>) -> bool`

### `impl<'id> Debug for InvariantLifetime<'id>`

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

### `impl<'id> Default for InvariantLifetime<'id>`

#### `fn default() -> InvariantLifetime<'id>`

### `impl<'id> Clone for InvariantLifetime<'id>`

#### `fn clone(&self) -> InvariantLifetime<'id>`

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

### `impl<'id> Copy for InvariantLifetime<'id>`

# 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

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