# [−][src]Trait cgmath::Bounded

    pub trait Bounded {
        fn min_value() -> Self;
        fn max_value() -> Self;
    }

Numbers which have upper and lower bounds

## Required methods

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

returns the smallest finite number this type can represent

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

returns the largest finite number this type can represent

Loading content...

## Implementations on Foreign Types

### `impl<F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T> Bounded for (F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T) where
F: Bounded,
G: Bounded,
H: Bounded,
I: Bounded,
J: Bounded,
K: Bounded,
L: Bounded,
M: Bounded,
N: Bounded,
O: Bounded,
P: Bounded,
Q: Bounded,
R: Bounded,
S: Bounded,
T: Bounded,` [src]

#### `fn min_value() -> (F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T)`[src]

#### `fn max_value() -> (F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T)`[src]

### `impl<R, S, T> Bounded for (R, S, T) where
R: Bounded,
S: Bounded,
T: Bounded,` [src]

#### `fn min_value() -> (R, S, T)`[src]

#### `fn max_value() -> (R, S, T)`[src]

### `impl Bounded for isize`[src]

#### `fn min_value() -> isize`[src]

#### `fn max_value() -> isize`[src]

### `impl Bounded for i64`[src]

#### `fn min_value() -> i64`[src]

#### `fn max_value() -> i64`[src]

### `impl<I, J, K, L, M, N, O, P, Q, R, S, T> Bounded for (I, J, K, L, M, N, O, P, Q, R, S, T) where
I: Bounded,
J: Bounded,
K: Bounded,
L: Bounded,
M: Bounded,
N: Bounded,
O: Bounded,
P: Bounded,
Q: Bounded,
R: Bounded,
S: Bounded,
T: Bounded,` [src]

#### `fn min_value() -> (I, J, K, L, M, N, O, P, Q, R, S, T)`[src]

#### `fn max_value() -> (I, J, K, L, M, N, O, P, Q, R, S, T)`[src]

### `impl<S, T> Bounded for (S, T) where
S: Bounded,
T: Bounded,` [src]

#### `fn min_value() -> (S, T)`[src]

#### `fn max_value() -> (S, T)`[src]

### `impl Bounded for f32`[src]

#### `fn min_value() -> f32`[src]

#### `fn max_value() -> f32`[src]

### `impl<O, P, Q, R, S, T> Bounded for (O, P, Q, R, S, T) where
O: Bounded,
P: Bounded,
Q: Bounded,
R: Bounded,
S: Bounded,
T: Bounded,` [src]

#### `fn min_value() -> (O, P, Q, R, S, T)`[src]

#### `fn max_value() -> (O, P, Q, R, S, T)`[src]

### `impl<T> Bounded for Wrapping<T> where
T: Bounded,` [src]

#### `fn min_value() -> Wrapping<T>`[src]

#### `fn max_value() -> Wrapping<T>`[src]

### `impl<C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T> Bounded for (C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T) where
C: Bounded,
D: Bounded,
E: Bounded,
F: Bounded,
G: Bounded,
H: Bounded,
I: Bounded,
J: Bounded,
K: Bounded,
L: Bounded,
M: Bounded,
N: Bounded,
O: Bounded,
P: Bounded,
Q: Bounded,
R: Bounded,
S: Bounded,
T: Bounded,` [src]

#### `fn min_value() -> (C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T)`[src]

#### `fn max_value() -> (C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T)`[src]

### `impl Bounded for f64`[src]

#### `fn min_value() -> f64`[src]

#### `fn max_value() -> f64`[src]

### `impl Bounded for i8`[src]

#### `fn min_value() -> i8`[src]

#### `fn max_value() -> i8`[src]

### `impl<M, N, O, P, Q, R, S, T> Bounded for (M, N, O, P, Q, R, S, T) where
M: Bounded,
N: Bounded,
O: Bounded,
P: Bounded,
Q: Bounded,
R: Bounded,
S: Bounded,
T: Bounded,` [src]

#### `fn min_value() -> (M, N, O, P, Q, R, S, T)`[src]

#### `fn max_value() -> (M, N, O, P, Q, R, S, T)`[src]

### `impl<J, K, L, M, N, O, P, Q, R, S, T> Bounded for (J, K, L, M, N, O, P, Q, R, S, T) where
J: Bounded,
K: Bounded,
L: Bounded,
M: Bounded,
N: Bounded,
O: Bounded,
P: Bounded,
Q: Bounded,
R: Bounded,
S: Bounded,
T: Bounded,` [src]

#### `fn min_value() -> (J, K, L, M, N, O, P, Q, R, S, T)`[src]

#### `fn max_value() -> (J, K, L, M, N, O, P, Q, R, S, T)`[src]

### `impl Bounded for ()`[src]

#### `fn min_value()`[src]

#### `fn max_value()`[src]

### `impl<E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T> Bounded for (E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T) where
E: Bounded,
F: Bounded,
G: Bounded,
H: Bounded,
I: Bounded,
J: Bounded,
K: Bounded,
L: Bounded,
M: Bounded,
N: Bounded,
O: Bounded,
P: Bounded,
Q: Bounded,
R: Bounded,
S: Bounded,
T: Bounded,` [src]

#### `fn min_value() -> (E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T)`[src]

#### `fn max_value() -> (E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T)`[src]

### `impl<H, I, J, K, L, M, N, O, P, Q, R, S, T> Bounded for (H, I, J, K, L, M, N, O, P, Q, R, S, T) where
H: Bounded,
I: Bounded,
J: Bounded,
K: Bounded,
L: Bounded,
M: Bounded,
N: Bounded,
O: Bounded,
P: Bounded,
Q: Bounded,
R: Bounded,
S: Bounded,
T: Bounded,` [src]

#### `fn min_value() -> (H, I, J, K, L, M, N, O, P, Q, R, S, T)`[src]

#### `fn max_value() -> (H, I, J, K, L, M, N, O, P, Q, R, S, T)`[src]

### `impl<G, H, I, J, K, L, M, N, O, P, Q, R, S, T> Bounded for (G, H, I, J, K, L, M, N, O, P, Q, R, S, T) where
G: Bounded,
H: Bounded,
I: Bounded,
J: Bounded,
K: Bounded,
L: Bounded,
M: Bounded,
N: Bounded,
O: Bounded,
P: Bounded,
Q: Bounded,
R: Bounded,
S: Bounded,
T: Bounded,` [src]

#### `fn min_value() -> (G, H, I, J, K, L, M, N, O, P, Q, R, S, T)`[src]

#### `fn max_value() -> (G, H, I, J, K, L, M, N, O, P, Q, R, S, T)`[src]

### `impl Bounded for u64`[src]

#### `fn min_value() -> u64`[src]

#### `fn max_value() -> u64`[src]

### `impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T> Bounded for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T) where
A: Bounded,
B: Bounded,
C: Bounded,
D: Bounded,
E: Bounded,
F: Bounded,
G: Bounded,
H: Bounded,
I: Bounded,
J: Bounded,
K: Bounded,
L: Bounded,
M: Bounded,
N: Bounded,
O: Bounded,
P: Bounded,
Q: Bounded,
R: Bounded,
S: Bounded,
T: Bounded,` [src]

#### `fn min_value() -> (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T)`[src]

#### `fn max_value() -> (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T)`[src]

### `impl Bounded for u32`[src]

#### `fn min_value() -> u32`[src]

#### `fn max_value() -> u32`[src]

### `impl<Q, R, S, T> Bounded for (Q, R, S, T) where
Q: Bounded,
R: Bounded,
S: Bounded,
T: Bounded,` [src]

#### `fn min_value() -> (Q, R, S, T)`[src]

#### `fn max_value() -> (Q, R, S, T)`[src]

### `impl<D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T> Bounded for (D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T) where
D: Bounded,
E: Bounded,
F: Bounded,
G: Bounded,
H: Bounded,
I: Bounded,
J: Bounded,
K: Bounded,
L: Bounded,
M: Bounded,
N: Bounded,
O: Bounded,
P: Bounded,
Q: Bounded,
R: Bounded,
S: Bounded,
T: Bounded,` [src]

#### `fn min_value() -> (D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T)`[src]

#### `fn max_value() -> (D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T)`[src]

### `impl Bounded for usize`[src]

#### `fn min_value() -> usize`[src]

#### `fn max_value() -> usize`[src]

### `impl Bounded for u8`[src]

#### `fn min_value() -> u8`[src]

#### `fn max_value() -> u8`[src]

### `impl<N, O, P, Q, R, S, T> Bounded for (N, O, P, Q, R, S, T) where
N: Bounded,
O: Bounded,
P: Bounded,
Q: Bounded,
R: Bounded,
S: Bounded,
T: Bounded,` [src]

#### `fn min_value() -> (N, O, P, Q, R, S, T)`[src]

#### `fn max_value() -> (N, O, P, Q, R, S, T)`[src]

### `impl<L, M, N, O, P, Q, R, S, T> Bounded for (L, M, N, O, P, Q, R, S, T) where
L: Bounded,
M: Bounded,
N: Bounded,
O: Bounded,
P: Bounded,
Q: Bounded,
R: Bounded,
S: Bounded,
T: Bounded,` [src]

#### `fn min_value() -> (L, M, N, O, P, Q, R, S, T)`[src]

#### `fn max_value() -> (L, M, N, O, P, Q, R, S, T)`[src]

### `impl Bounded for i32`[src]

#### `fn min_value() -> i32`[src]

#### `fn max_value() -> i32`[src]

### `impl Bounded for u128`[src]

#### `fn min_value() -> u128`[src]

#### `fn max_value() -> u128`[src]

### `impl Bounded for i128`[src]

#### `fn min_value() -> i128`[src]

#### `fn max_value() -> i128`[src]

### `impl Bounded for i16`[src]

#### `fn min_value() -> i16`[src]

#### `fn max_value() -> i16`[src]

### `impl<B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T> Bounded for (B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T) where
B: Bounded,
C: Bounded,
D: Bounded,
E: Bounded,
F: Bounded,
G: Bounded,
H: Bounded,
I: Bounded,
J: Bounded,
K: Bounded,
L: Bounded,
M: Bounded,
N: Bounded,
O: Bounded,
P: Bounded,
Q: Bounded,
R: Bounded,
S: Bounded,
T: Bounded,` [src]

#### `fn min_value() -> (B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T)`[src]

#### `fn max_value() -> (B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T)`[src]

### `impl<K, L, M, N, O, P, Q, R, S, T> Bounded for (K, L, M, N, O, P, Q, R, S, T) where
K: Bounded,
L: Bounded,
M: Bounded,
N: Bounded,
O: Bounded,
P: Bounded,
Q: Bounded,
R: Bounded,
S: Bounded,
T: Bounded,` [src]

#### `fn min_value() -> (K, L, M, N, O, P, Q, R, S, T)`[src]

#### `fn max_value() -> (K, L, M, N, O, P, Q, R, S, T)`[src]

### `impl<T> Bounded for (T,) where
T: Bounded,` [src]

#### `fn min_value() -> (T,)`[src]

#### `fn max_value() -> (T,)`[src]

### `impl Bounded for u16`[src]

#### `fn min_value() -> u16`[src]

#### `fn max_value() -> u16`[src]

### `impl<P, Q, R, S, T> Bounded for (P, Q, R, S, T) where
P: Bounded,
Q: Bounded,
R: Bounded,
S: Bounded,
T: Bounded,` [src]

#### `fn min_value() -> (P, Q, R, S, T)`[src]

#### `fn max_value() -> (P, Q, R, S, T)`[src]

Loading content...

## Implementors

### `impl<S: Bounded> Bounded for Deg<S>`[src]

#### `fn min_value() -> Deg<S>`[src]

#### `fn max_value() -> Deg<S>`[src]

### `impl<S: Bounded> Bounded for Point1<S>`[src]

#### `fn min_value() -> Point1<S>`[src]

#### `fn max_value() -> Point1<S>`[src]

### `impl<S: Bounded> Bounded for Point2<S>`[src]

#### `fn min_value() -> Point2<S>`[src]

#### `fn max_value() -> Point2<S>`[src]

### `impl<S: Bounded> Bounded for Point3<S>`[src]

#### `fn min_value() -> Point3<S>`[src]

#### `fn max_value() -> Point3<S>`[src]

### `impl<S: Bounded> Bounded for Rad<S>`[src]

#### `fn min_value() -> Rad<S>`[src]

#### `fn max_value() -> Rad<S>`[src]

### `impl<S: Bounded> Bounded for Vector1<S>`[src]

#### `fn min_value() -> Vector1<S>`[src]

#### `fn max_value() -> Vector1<S>`[src]

### `impl<S: Bounded> Bounded for Vector2<S>`[src]

#### `fn min_value() -> Vector2<S>`[src]

#### `fn max_value() -> Vector2<S>`[src]

### `impl<S: Bounded> Bounded for Vector3<S>`[src]

#### `fn min_value() -> Vector3<S>`[src]

#### `fn max_value() -> Vector3<S>`[src]

### `impl<S: Bounded> Bounded for Vector4<S>`[src]

#### `fn min_value() -> Vector4<S>`[src]

#### `fn max_value() -> Vector4<S>`[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`)