# [−][src]Trait typenum::type_operators::Max

    pub trait Max<Rhs = Self> {
        type Output;
        fn max(self, rhs: Rhs) -> Self::Output;
    }

A type operator that returns the maximum of `Self` and `Rhs`.

## Associated Types

### `type Output`

The type of the maximum of `Self` and `Rhs`

Loading content...

## Required methods

### `fn max(self, rhs: Rhs) -> Self::Output`

Method returning the maximum

Loading content...

## Implementors

### `impl Max<B0> for B0`[src]

#### `type Output = B0`

#### `fn max(self, _: B0) -> B0`[src]

### `impl Max<B0> for B1`[src]

#### `type Output = B1`

#### `fn max(self, _: B0) -> B1`[src]

### `impl Max<B1> for B0`[src]

#### `type Output = B1`

#### `fn max(self, rhs: B1) -> B1`[src]

### `impl Max<B1> for B1`[src]

#### `type Output = B1`

#### `fn max(self, _: B1) -> B1`[src]

### `impl Max<Z0> for Z0`[src]

#### `type Output = Z0`

#### `fn max(self, _: Z0) -> Self::Output`[src]

### `impl<U> Max<NInt<U>> for Z0 where
U: Unsigned + NonZero,` [src]

#### `type Output = Z0`

#### `fn max(self, _: NInt<U>) -> Self::Output`[src]

### `impl<U> Max<PInt<U>> for Z0 where
U: Unsigned + NonZero,` [src]

#### `type Output = PInt<U>`

#### `fn max(self, rhs: PInt<U>) -> Self::Output`[src]

### `impl<U> Max<Z0> for PInt<U> where
U: Unsigned + NonZero,` [src]

#### `type Output = PInt<U>`

#### `fn max(self, _: Z0) -> Self::Output`[src]

### `impl<U> Max<Z0> for NInt<U> where
U: Unsigned + NonZero,` [src]

#### `type Output = Z0`

#### `fn max(self, rhs: Z0) -> Self::Output`[src]

### `impl<U> Max<U> for UTerm where
U: Unsigned,` [src]

#### `type Output = U`

#### `fn max(self, rhs: U) -> Self::Output`[src]

### `impl<U, B, Ur> Max<Ur> for UInt<U, B> where
U: Unsigned,
B: Bit,
Ur: Unsigned,
UInt<U, B>: Cmp<Ur> + PrivateMax<Ur, Compare<UInt<U, B>, Ur>>,` [src]

#### `type Output = PrivateMaxOut<UInt<U, B>, Ur, Compare<UInt<U, B>, Ur>>`

#### `fn max(self, rhs: Ur) -> Self::Output`[src]

### `impl<Ul, Ur> Max<NInt<Ur>> for NInt<Ul> where
Ul: Unsigned + NonZero + Min<Ur>,
Ur: Unsigned + NonZero,
Minimum<Ul, Ur>: Unsigned + NonZero,` [src]

#### `type Output = NInt<Minimum<Ul, Ur>>`

#### `fn max(self, _: NInt<Ur>) -> Self::Output`[src]

### `impl<Ul, Ur> Max<NInt<Ur>> for PInt<Ul> where
Ul: Unsigned + NonZero,
Ur: Unsigned + NonZero,` [src]

#### `type Output = PInt<Ul>`

#### `fn max(self, _: NInt<Ur>) -> Self::Output`[src]

### `impl<Ul, Ur> Max<PInt<Ur>> for NInt<Ul> where
Ul: Unsigned + NonZero,
Ur: Unsigned + NonZero,` [src]

#### `type Output = PInt<Ur>`

#### `fn max(self, rhs: PInt<Ur>) -> Self::Output`[src]

### `impl<Ul, Ur> Max<PInt<Ur>> for PInt<Ul> where
Ul: Unsigned + NonZero + Max<Ur>,
Ur: Unsigned + NonZero,
Maximum<Ul, Ur>: Unsigned + NonZero,` [src]

#### `type Output = PInt<Maximum<Ul, Ur>>`

#### `fn max(self, _: PInt<Ur>) -> Self::Output`[src]

Loading content...

# Help

## Keyboard Shortcuts

`?`
  Show this help dialog
`S`
  Focus the search field
`↑`
  Move up in search results
`↓`
  Move down in search results
`↹`
  Switch tab
`⏎`
  Go to active search result
`+`
  Expand all sections
`-`
  Collapse 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`)

Search multiple things at once by splitting your query with comma (e.g., `str,u8` or `String,struct:Vec,test`)