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

    pub trait PartialDiv<Rhs = Self> {
        type Output;
        fn partial_div(self, _: Rhs) -> Self::Output;
    }

Division as a partial function. This type operator performs division just as `Div`, but is only defined when the result is an integer (i.e. there is no remainder).

## Associated Types

### `type Output`

The type of the result of the division

Loading content...

## Required methods

### `fn partial_div(self, _: Rhs) -> Self::Output`

Method for performing the division

Loading content...

## Implementors

### `impl<M, N> PartialDiv<N> for M where
M: Integer + Div<N> + Rem<N, Output = Z0>,` [src]

#### `type Output = Quot<M, N>`

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

### `impl<Rhs> PartialDiv<Rhs> for ATerm`[src]

#### `type Output = ATerm`

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

### `impl<Ul: Unsigned, Bl: Bit, Ur: Unsigned, Br: Bit> PartialDiv<UInt<Ur, Br>> for UInt<Ul, Bl> where
UInt<Ul, Bl>: Div<UInt<Ur, Br>> + Rem<UInt<Ur, Br>, Output = U0>,` [src]

#### `type Output = Quot<UInt<Ul, Bl>, UInt<Ur, Br>>`

#### `fn partial_div(self, _: UInt<Ur, Br>) -> Self::Output`[src]

### `impl<Ur: Unsigned, Br: Bit> PartialDiv<UInt<Ur, Br>> for UTerm`[src]

#### `type Output = UTerm`

#### `fn partial_div(self, _: UInt<Ur, Br>) -> Self::Output`[src]

### `impl<V, A, Rhs> PartialDiv<Rhs> for TArr<V, A> where
V: PartialDiv<Rhs>,
A: PartialDiv<Rhs>,` [src]

#### `type Output = TArr<PartialQuot<V, Rhs>, PartialQuot<A, Rhs>>`

#### `fn partial_div(self, _: Rhs) -> 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`)