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

    pub trait Len {
        type Output: Unsigned;
        fn len(&self) -> Self::Output;
    }

A type operator that gives the length of an `Array` or the number of bits in a `UInt`.

## Associated Types

### `type Output: Unsigned`

The length as a type-level unsigned integer.

Loading content...

## Required methods

### `fn len(&self) -> Self::Output`

This function isn't used in this crate, but may be useful for others.

Loading content...

## Implementors

### `impl Len for ATerm`[src]

Length of `ATerm` by itself is 0

#### `type Output = U0`

#### `fn len(&self) -> Self::Output`[src]

### `impl Len for UTerm`[src]

Length of `UTerm` by itself is 0

#### `type Output = U0`

#### `fn len(&self) -> Self::Output`[src]

### `impl<U: Unsigned, B: Bit> Len for UInt<U, B> where
U: Len,
Length<U>: Add<B1>,
Add1<Length<U>>: Unsigned,` [src]

Length of a bit is 1

#### `type Output = Add1<Length<U>>`

#### `fn len(&self) -> Self::Output`[src]

### `impl<V, A> Len for TArr<V, A> where
A: Len,
Length<A>: Add<B1>,
Sum<Length<A>, B1>: Unsigned,` [src]

Size of a `TypeArray`

#### `type Output = Add1<Length<A>>`

#### `fn len(&self) -> 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`)