SubsetOf in simba::scalar - Rust
Description: Nested sets and conversions between them (using an injective mapping). Useful to work with substructures. In generic code, it is preferable to use `SupersetOf` as trait bound whenever possible instead of `SubsetOf` (because SupersetOf is automatically implemented whenever `SubsetOf` is).
Keywords: rust, rustlang, rust-lang, SubsetOf

# Trait simba::scalar::SubsetOf

source ·

    pub trait SubsetOf<T>: Sized {
        fn to_superset(&self) -> T;
        fn from_superset_unchecked(element: &T) -> Self;
        fn is_in_subset(element: &T) -> bool;

        fn from_superset(element: &T) -> Option<Self> { ... }
    }

Expand description

Nested sets and conversions between them (using an injective mapping). Useful to work with substructures. In generic code, it is preferable to use `SupersetOf` as trait bound whenever possible instead of `SubsetOf` (because SupersetOf is automatically implemented whenever `SubsetOf` is).

The notion of “nested sets” is very broad and applies to what the types are supposed to represent, independently from their actual implementation details and limitations. For example:

- f32 and f64 are both supposed to represent reals and are thus considered equal (even if in practice f64 has more elements).
- u32 and i8 are respectively supposed to represent natural and relative numbers. Thus, u32 is a subset of i8.
- A quaternion and a 3x3 orthogonal matrix with unit determinant are both sets of rotations. They can thus be considered equal.

In other words, implementation details due to machine limitations are ignored (otherwise we could not even, e.g., convert a u64 to an i64). If considering those limitations are important, other crates allowing you to query the limitations of given types should be used.

## Required Methods§

source

#### fn to_superset(&self) -> T

The inclusion map: converts `self` to the equivalent element of its superset.

source

#### fn from_superset_unchecked(element: &T) -> Self

Use with care! Same as `self.to_superset` but without any property checks. Always succeeds.

source

#### fn is_in_subset(element: &T) -> bool

Checks if `element` is actually part of the subset `Self` (and can be converted to it).

## Provided Methods§

source

#### fn from_superset(element: &T) -> Option<Self>

The inverse inclusion map: attempts to construct `self` from the equivalent element of its superset.

Must return `None` if `element` has no equivalent in `Self`.

## Implementations on Foreign Types§

source§

### impl SubsetOf<u8> for u8

source§

#### fn to_superset(&self) -> u8

source§

#### fn from_superset_unchecked(element: &u8) -> u8

source§

#### fn is_in_subset(_: &u8) -> bool

source§

### impl SubsetOf<u16> for u8

source§

#### fn to_superset(&self) -> u16

source§

#### fn from_superset_unchecked(element: &u16) -> u8

source§

#### fn is_in_subset(_: &u16) -> bool

source§

### impl SubsetOf<u32> for u8

source§

#### fn to_superset(&self) -> u32

source§

#### fn from_superset_unchecked(element: &u32) -> u8

source§

#### fn is_in_subset(_: &u32) -> bool

source§

### impl SubsetOf<u64> for u8

source§

#### fn to_superset(&self) -> u64

source§

#### fn from_superset_unchecked(element: &u64) -> u8

source§

#### fn is_in_subset(_: &u64) -> bool

source§

### impl SubsetOf<u128> for u8

source§

#### fn to_superset(&self) -> u128

source§

#### fn from_superset_unchecked(element: &u128) -> u8

source§

#### fn is_in_subset(_: &u128) -> bool

source§

### impl SubsetOf<usize> for u8

source§

#### fn to_superset(&self) -> usize

source§

#### fn from_superset_unchecked(element: &usize) -> u8

source§

#### fn is_in_subset(_: &usize) -> bool

source§

### impl SubsetOf<i8> for u8

source§

#### fn to_superset(&self) -> i8

source§

#### fn from_superset_unchecked(element: &i8) -> u8

source§

#### fn is_in_subset(_: &i8) -> bool

source§

### impl SubsetOf<i16> for u8

source§

#### fn to_superset(&self) -> i16

source§

#### fn from_superset_unchecked(element: &i16) -> u8

source§

#### fn is_in_subset(_: &i16) -> bool

source§

### impl SubsetOf<i32> for u8

source§

#### fn to_superset(&self) -> i32

source§

#### fn from_superset_unchecked(element: &i32) -> u8

source§

#### fn is_in_subset(_: &i32) -> bool

source§

### impl SubsetOf<i64> for u8

source§

#### fn to_superset(&self) -> i64

source§

#### fn from_superset_unchecked(element: &i64) -> u8

source§

#### fn is_in_subset(_: &i64) -> bool

source§

### impl SubsetOf<i128> for u8

source§

#### fn to_superset(&self) -> i128

source§

#### fn from_superset_unchecked(element: &i128) -> u8

source§

#### fn is_in_subset(_: &i128) -> bool

source§

### impl SubsetOf<isize> for u8

source§

#### fn to_superset(&self) -> isize

source§

#### fn from_superset_unchecked(element: &isize) -> u8

source§

#### fn is_in_subset(_: &isize) -> bool

source§

### impl SubsetOf<f32> for u8

source§

#### fn to_superset(&self) -> f32

source§

#### fn from_superset_unchecked(element: &f32) -> u8

source§

#### fn is_in_subset(_: &f32) -> bool

source§

### impl SubsetOf<f64> for u8

source§

#### fn to_superset(&self) -> f64

source§

#### fn from_superset_unchecked(element: &f64) -> u8

source§

#### fn is_in_subset(_: &f64) -> bool

source§

### impl SubsetOf<u8> for u16

source§

#### fn to_superset(&self) -> u8

source§

#### fn from_superset_unchecked(element: &u8) -> u16

source§

#### fn is_in_subset(_: &u8) -> bool

source§

### impl SubsetOf<u16> for u16

source§

#### fn to_superset(&self) -> u16

source§

#### fn from_superset_unchecked(element: &u16) -> u16

source§

#### fn is_in_subset(_: &u16) -> bool

source§

### impl SubsetOf<u32> for u16

source§

#### fn to_superset(&self) -> u32

source§

#### fn from_superset_unchecked(element: &u32) -> u16

source§

#### fn is_in_subset(_: &u32) -> bool

source§

### impl SubsetOf<u64> for u16

source§

#### fn to_superset(&self) -> u64

source§

#### fn from_superset_unchecked(element: &u64) -> u16

source§

#### fn is_in_subset(_: &u64) -> bool

source§

### impl SubsetOf<u128> for u16

source§

#### fn to_superset(&self) -> u128

source§

#### fn from_superset_unchecked(element: &u128) -> u16

source§

#### fn is_in_subset(_: &u128) -> bool

source§

### impl SubsetOf<usize> for u16

source§

#### fn to_superset(&self) -> usize

source§

#### fn from_superset_unchecked(element: &usize) -> u16

source§

#### fn is_in_subset(_: &usize) -> bool

source§

### impl SubsetOf<i8> for u16

source§

#### fn to_superset(&self) -> i8

source§

#### fn from_superset_unchecked(element: &i8) -> u16

source§

#### fn is_in_subset(_: &i8) -> bool

source§

### impl SubsetOf<i16> for u16

source§

#### fn to_superset(&self) -> i16

source§

#### fn from_superset_unchecked(element: &i16) -> u16

source§

#### fn is_in_subset(_: &i16) -> bool

source§

### impl SubsetOf<i32> for u16

source§

#### fn to_superset(&self) -> i32

source§

#### fn from_superset_unchecked(element: &i32) -> u16

source§

#### fn is_in_subset(_: &i32) -> bool

source§

### impl SubsetOf<i64> for u16

source§

#### fn to_superset(&self) -> i64

source§

#### fn from_superset_unchecked(element: &i64) -> u16

source§

#### fn is_in_subset(_: &i64) -> bool

source§

### impl SubsetOf<i128> for u16

source§

#### fn to_superset(&self) -> i128

source§

#### fn from_superset_unchecked(element: &i128) -> u16

source§

#### fn is_in_subset(_: &i128) -> bool

source§

### impl SubsetOf<isize> for u16

source§

#### fn to_superset(&self) -> isize

source§

#### fn from_superset_unchecked(element: &isize) -> u16

source§

#### fn is_in_subset(_: &isize) -> bool

source§

### impl SubsetOf<f32> for u16

source§

#### fn to_superset(&self) -> f32

source§

#### fn from_superset_unchecked(element: &f32) -> u16

source§

#### fn is_in_subset(_: &f32) -> bool

source§

### impl SubsetOf<f64> for u16

source§

#### fn to_superset(&self) -> f64

source§

#### fn from_superset_unchecked(element: &f64) -> u16

source§

#### fn is_in_subset(_: &f64) -> bool

source§

### impl SubsetOf<u8> for u32

source§

#### fn to_superset(&self) -> u8

source§

#### fn from_superset_unchecked(element: &u8) -> u32

source§

#### fn is_in_subset(_: &u8) -> bool

source§

### impl SubsetOf<u16> for u32

source§

#### fn to_superset(&self) -> u16

source§

#### fn from_superset_unchecked(element: &u16) -> u32

source§

#### fn is_in_subset(_: &u16) -> bool

source§

### impl SubsetOf<u32> for u32

source§

#### fn to_superset(&self) -> u32

source§

#### fn from_superset_unchecked(element: &u32) -> u32

source§

#### fn is_in_subset(_: &u32) -> bool

source§

### impl SubsetOf<u64> for u32

source§

#### fn to_superset(&self) -> u64

source§

#### fn from_superset_unchecked(element: &u64) -> u32

source§

#### fn is_in_subset(_: &u64) -> bool

source§

### impl SubsetOf<u128> for u32

source§

#### fn to_superset(&self) -> u128

source§

#### fn from_superset_unchecked(element: &u128) -> u32

source§

#### fn is_in_subset(_: &u128) -> bool

source§

### impl SubsetOf<usize> for u32

source§

#### fn to_superset(&self) -> usize

source§

#### fn from_superset_unchecked(element: &usize) -> u32

source§

#### fn is_in_subset(_: &usize) -> bool

source§

### impl SubsetOf<i8> for u32

source§

#### fn to_superset(&self) -> i8

source§

#### fn from_superset_unchecked(element: &i8) -> u32

source§

#### fn is_in_subset(_: &i8) -> bool

source§

### impl SubsetOf<i16> for u32

source§

#### fn to_superset(&self) -> i16

source§

#### fn from_superset_unchecked(element: &i16) -> u32

source§

#### fn is_in_subset(_: &i16) -> bool

source§

### impl SubsetOf<i32> for u32

source§

#### fn to_superset(&self) -> i32

source§

#### fn from_superset_unchecked(element: &i32) -> u32

source§

#### fn is_in_subset(_: &i32) -> bool

source§

### impl SubsetOf<i64> for u32

source§

#### fn to_superset(&self) -> i64

source§

#### fn from_superset_unchecked(element: &i64) -> u32

source§

#### fn is_in_subset(_: &i64) -> bool

source§

### impl SubsetOf<i128> for u32

source§

#### fn to_superset(&self) -> i128

source§

#### fn from_superset_unchecked(element: &i128) -> u32

source§

#### fn is_in_subset(_: &i128) -> bool

source§

### impl SubsetOf<isize> for u32

source§

#### fn to_superset(&self) -> isize

source§

#### fn from_superset_unchecked(element: &isize) -> u32

source§

#### fn is_in_subset(_: &isize) -> bool

source§

### impl SubsetOf<f32> for u32

source§

#### fn to_superset(&self) -> f32

source§

#### fn from_superset_unchecked(element: &f32) -> u32

source§

#### fn is_in_subset(_: &f32) -> bool

source§

### impl SubsetOf<f64> for u32

source§

#### fn to_superset(&self) -> f64

source§

#### fn from_superset_unchecked(element: &f64) -> u32

source§

#### fn is_in_subset(_: &f64) -> bool

source§

### impl SubsetOf<u8> for u64

source§

#### fn to_superset(&self) -> u8

source§

#### fn from_superset_unchecked(element: &u8) -> u64

source§

#### fn is_in_subset(_: &u8) -> bool

source§

### impl SubsetOf<u16> for u64

source§

#### fn to_superset(&self) -> u16

source§

#### fn from_superset_unchecked(element: &u16) -> u64

source§

#### fn is_in_subset(_: &u16) -> bool

source§

### impl SubsetOf<u32> for u64

source§

#### fn to_superset(&self) -> u32

source§

#### fn from_superset_unchecked(element: &u32) -> u64

source§

#### fn is_in_subset(_: &u32) -> bool

source§

### impl SubsetOf<u64> for u64

source§

#### fn to_superset(&self) -> u64

source§

#### fn from_superset_unchecked(element: &u64) -> u64

source§

#### fn is_in_subset(_: &u64) -> bool

source§

### impl SubsetOf<u128> for u64

source§

#### fn to_superset(&self) -> u128

source§

#### fn from_superset_unchecked(element: &u128) -> u64

source§

#### fn is_in_subset(_: &u128) -> bool

source§

### impl SubsetOf<usize> for u64

source§

#### fn to_superset(&self) -> usize

source§

#### fn from_superset_unchecked(element: &usize) -> u64

source§

#### fn is_in_subset(_: &usize) -> bool

source§

### impl SubsetOf<i8> for u64

source§

#### fn to_superset(&self) -> i8

source§

#### fn from_superset_unchecked(element: &i8) -> u64

source§

#### fn is_in_subset(_: &i8) -> bool

source§

### impl SubsetOf<i16> for u64

source§

#### fn to_superset(&self) -> i16

source§

#### fn from_superset_unchecked(element: &i16) -> u64

source§

#### fn is_in_subset(_: &i16) -> bool

source§

### impl SubsetOf<i32> for u64

source§

#### fn to_superset(&self) -> i32

source§

#### fn from_superset_unchecked(element: &i32) -> u64

source§

#### fn is_in_subset(_: &i32) -> bool

source§

### impl SubsetOf<i64> for u64

source§

#### fn to_superset(&self) -> i64

source§

#### fn from_superset_unchecked(element: &i64) -> u64

source§

#### fn is_in_subset(_: &i64) -> bool

source§

### impl SubsetOf<i128> for u64

source§

#### fn to_superset(&self) -> i128

source§

#### fn from_superset_unchecked(element: &i128) -> u64

source§

#### fn is_in_subset(_: &i128) -> bool

source§

### impl SubsetOf<isize> for u64

source§

#### fn to_superset(&self) -> isize

source§

#### fn from_superset_unchecked(element: &isize) -> u64

source§

#### fn is_in_subset(_: &isize) -> bool

source§

### impl SubsetOf<f32> for u64

source§

#### fn to_superset(&self) -> f32

source§

#### fn from_superset_unchecked(element: &f32) -> u64

source§

#### fn is_in_subset(_: &f32) -> bool

source§

### impl SubsetOf<f64> for u64

source§

#### fn to_superset(&self) -> f64

source§

#### fn from_superset_unchecked(element: &f64) -> u64

source§

#### fn is_in_subset(_: &f64) -> bool

source§

### impl SubsetOf<u8> for u128

source§

#### fn to_superset(&self) -> u8

source§

#### fn from_superset_unchecked(element: &u8) -> u128

source§

#### fn is_in_subset(_: &u8) -> bool

source§

### impl SubsetOf<u16> for u128

source§

#### fn to_superset(&self) -> u16

source§

#### fn from_superset_unchecked(element: &u16) -> u128

source§

#### fn is_in_subset(_: &u16) -> bool

source§

### impl SubsetOf<u32> for u128

source§

#### fn to_superset(&self) -> u32

source§

#### fn from_superset_unchecked(element: &u32) -> u128

source§

#### fn is_in_subset(_: &u32) -> bool

source§

### impl SubsetOf<u64> for u128

source§

#### fn to_superset(&self) -> u64

source§

#### fn from_superset_unchecked(element: &u64) -> u128

source§

#### fn is_in_subset(_: &u64) -> bool

source§

### impl SubsetOf<u128> for u128

source§

#### fn to_superset(&self) -> u128

source§

#### fn from_superset_unchecked(element: &u128) -> u128

source§

#### fn is_in_subset(_: &u128) -> bool

source§

### impl SubsetOf<usize> for u128

source§

#### fn to_superset(&self) -> usize

source§

#### fn from_superset_unchecked(element: &usize) -> u128

source§

#### fn is_in_subset(_: &usize) -> bool

source§

### impl SubsetOf<i8> for u128

source§

#### fn to_superset(&self) -> i8

source§

#### fn from_superset_unchecked(element: &i8) -> u128

source§

#### fn is_in_subset(_: &i8) -> bool

source§

### impl SubsetOf<i16> for u128

source§

#### fn to_superset(&self) -> i16

source§

#### fn from_superset_unchecked(element: &i16) -> u128

source§

#### fn is_in_subset(_: &i16) -> bool

source§

### impl SubsetOf<i32> for u128

source§

#### fn to_superset(&self) -> i32

source§

#### fn from_superset_unchecked(element: &i32) -> u128

source§

#### fn is_in_subset(_: &i32) -> bool

source§

### impl SubsetOf<i64> for u128

source§

#### fn to_superset(&self) -> i64

source§

#### fn from_superset_unchecked(element: &i64) -> u128

source§

#### fn is_in_subset(_: &i64) -> bool

source§

### impl SubsetOf<i128> for u128

source§

#### fn to_superset(&self) -> i128

source§

#### fn from_superset_unchecked(element: &i128) -> u128

source§

#### fn is_in_subset(_: &i128) -> bool

source§

### impl SubsetOf<isize> for u128

source§

#### fn to_superset(&self) -> isize

source§

#### fn from_superset_unchecked(element: &isize) -> u128

source§

#### fn is_in_subset(_: &isize) -> bool

source§

### impl SubsetOf<f32> for u128

source§

#### fn to_superset(&self) -> f32

source§

#### fn from_superset_unchecked(element: &f32) -> u128

source§

#### fn is_in_subset(_: &f32) -> bool

source§

### impl SubsetOf<f64> for u128

source§

#### fn to_superset(&self) -> f64

source§

#### fn from_superset_unchecked(element: &f64) -> u128

source§

#### fn is_in_subset(_: &f64) -> bool

source§

### impl SubsetOf<u8> for usize

source§

#### fn to_superset(&self) -> u8

source§

#### fn from_superset_unchecked(element: &u8) -> usize

source§

#### fn is_in_subset(_: &u8) -> bool

source§

### impl SubsetOf<u16> for usize

source§

#### fn to_superset(&self) -> u16

source§

#### fn from_superset_unchecked(element: &u16) -> usize

source§

#### fn is_in_subset(_: &u16) -> bool

source§

### impl SubsetOf<u32> for usize

source§

#### fn to_superset(&self) -> u32

source§

#### fn from_superset_unchecked(element: &u32) -> usize

source§

#### fn is_in_subset(_: &u32) -> bool

source§

### impl SubsetOf<u64> for usize

source§

#### fn to_superset(&self) -> u64

source§

#### fn from_superset_unchecked(element: &u64) -> usize

source§

#### fn is_in_subset(_: &u64) -> bool

source§

### impl SubsetOf<u128> for usize

source§

#### fn to_superset(&self) -> u128

source§

#### fn from_superset_unchecked(element: &u128) -> usize

source§

#### fn is_in_subset(_: &u128) -> bool

source§

### impl SubsetOf<usize> for usize

source§

#### fn to_superset(&self) -> usize

source§

#### fn from_superset_unchecked(element: &usize) -> usize

source§

#### fn is_in_subset(_: &usize) -> bool

source§

### impl SubsetOf<i8> for usize

source§

#### fn to_superset(&self) -> i8

source§

#### fn from_superset_unchecked(element: &i8) -> usize

source§

#### fn is_in_subset(_: &i8) -> bool

source§

### impl SubsetOf<i16> for usize

source§

#### fn to_superset(&self) -> i16

source§

#### fn from_superset_unchecked(element: &i16) -> usize

source§

#### fn is_in_subset(_: &i16) -> bool

source§

### impl SubsetOf<i32> for usize

source§

#### fn to_superset(&self) -> i32

source§

#### fn from_superset_unchecked(element: &i32) -> usize

source§

#### fn is_in_subset(_: &i32) -> bool

source§

### impl SubsetOf<i64> for usize

source§

#### fn to_superset(&self) -> i64

source§

#### fn from_superset_unchecked(element: &i64) -> usize

source§

#### fn is_in_subset(_: &i64) -> bool

source§

### impl SubsetOf<i128> for usize

source§

#### fn to_superset(&self) -> i128

source§

#### fn from_superset_unchecked(element: &i128) -> usize

source§

#### fn is_in_subset(_: &i128) -> bool

source§

### impl SubsetOf<isize> for usize

source§

#### fn to_superset(&self) -> isize

source§

#### fn from_superset_unchecked(element: &isize) -> usize

source§

#### fn is_in_subset(_: &isize) -> bool

source§

### impl SubsetOf<f32> for usize

source§

#### fn to_superset(&self) -> f32

source§

#### fn from_superset_unchecked(element: &f32) -> usize

source§

#### fn is_in_subset(_: &f32) -> bool

source§

### impl SubsetOf<f64> for usize

source§

#### fn to_superset(&self) -> f64

source§

#### fn from_superset_unchecked(element: &f64) -> usize

source§

#### fn is_in_subset(_: &f64) -> bool

source§

### impl SubsetOf<i8> for i8

source§

#### fn to_superset(&self) -> i8

source§

#### fn from_superset_unchecked(element: &i8) -> i8

source§

#### fn is_in_subset(_: &i8) -> bool

source§

### impl SubsetOf<i16> for i8

source§

#### fn to_superset(&self) -> i16

source§

#### fn from_superset_unchecked(element: &i16) -> i8

source§

#### fn is_in_subset(_: &i16) -> bool

source§

### impl SubsetOf<i32> for i8

source§

#### fn to_superset(&self) -> i32

source§

#### fn from_superset_unchecked(element: &i32) -> i8

source§

#### fn is_in_subset(_: &i32) -> bool

source§

### impl SubsetOf<i64> for i8

source§

#### fn to_superset(&self) -> i64

source§

#### fn from_superset_unchecked(element: &i64) -> i8

source§

#### fn is_in_subset(_: &i64) -> bool

source§

### impl SubsetOf<i128> for i8

source§

#### fn to_superset(&self) -> i128

source§

#### fn from_superset_unchecked(element: &i128) -> i8

source§

#### fn is_in_subset(_: &i128) -> bool

source§

### impl SubsetOf<isize> for i8

source§

#### fn to_superset(&self) -> isize

source§

#### fn from_superset_unchecked(element: &isize) -> i8

source§

#### fn is_in_subset(_: &isize) -> bool

source§

### impl SubsetOf<f32> for i8

source§

#### fn to_superset(&self) -> f32

source§

#### fn from_superset_unchecked(element: &f32) -> i8

source§

#### fn is_in_subset(_: &f32) -> bool

source§

### impl SubsetOf<f64> for i8

source§

#### fn to_superset(&self) -> f64

source§

#### fn from_superset_unchecked(element: &f64) -> i8

source§

#### fn is_in_subset(_: &f64) -> bool

source§

### impl SubsetOf<i8> for i16

source§

#### fn to_superset(&self) -> i8

source§

#### fn from_superset_unchecked(element: &i8) -> i16

source§

#### fn is_in_subset(_: &i8) -> bool

source§

### impl SubsetOf<i16> for i16

source§

#### fn to_superset(&self) -> i16

source§

#### fn from_superset_unchecked(element: &i16) -> i16

source§

#### fn is_in_subset(_: &i16) -> bool

source§

### impl SubsetOf<i32> for i16

source§

#### fn to_superset(&self) -> i32

source§

#### fn from_superset_unchecked(element: &i32) -> i16

source§

#### fn is_in_subset(_: &i32) -> bool

source§

### impl SubsetOf<i64> for i16

source§

#### fn to_superset(&self) -> i64

source§

#### fn from_superset_unchecked(element: &i64) -> i16

source§

#### fn is_in_subset(_: &i64) -> bool

source§

### impl SubsetOf<i128> for i16

source§

#### fn to_superset(&self) -> i128

source§

#### fn from_superset_unchecked(element: &i128) -> i16

source§

#### fn is_in_subset(_: &i128) -> bool

source§

### impl SubsetOf<isize> for i16

source§

#### fn to_superset(&self) -> isize

source§

#### fn from_superset_unchecked(element: &isize) -> i16

source§

#### fn is_in_subset(_: &isize) -> bool

source§

### impl SubsetOf<f32> for i16

source§

#### fn to_superset(&self) -> f32

source§

#### fn from_superset_unchecked(element: &f32) -> i16

source§

#### fn is_in_subset(_: &f32) -> bool

source§

### impl SubsetOf<f64> for i16

source§

#### fn to_superset(&self) -> f64

source§

#### fn from_superset_unchecked(element: &f64) -> i16

source§

#### fn is_in_subset(_: &f64) -> bool

source§

### impl SubsetOf<i8> for i32

source§

#### fn to_superset(&self) -> i8

source§

#### fn from_superset_unchecked(element: &i8) -> i32

source§

#### fn is_in_subset(_: &i8) -> bool

source§

### impl SubsetOf<i16> for i32

source§

#### fn to_superset(&self) -> i16

source§

#### fn from_superset_unchecked(element: &i16) -> i32

source§

#### fn is_in_subset(_: &i16) -> bool

source§

### impl SubsetOf<i32> for i32

source§

#### fn to_superset(&self) -> i32

source§

#### fn from_superset_unchecked(element: &i32) -> i32

source§

#### fn is_in_subset(_: &i32) -> bool

source§

### impl SubsetOf<i64> for i32

source§

#### fn to_superset(&self) -> i64

source§

#### fn from_superset_unchecked(element: &i64) -> i32

source§

#### fn is_in_subset(_: &i64) -> bool

source§

### impl SubsetOf<i128> for i32

source§

#### fn to_superset(&self) -> i128

source§

#### fn from_superset_unchecked(element: &i128) -> i32

source§

#### fn is_in_subset(_: &i128) -> bool

source§

### impl SubsetOf<isize> for i32

source§

#### fn to_superset(&self) -> isize

source§

#### fn from_superset_unchecked(element: &isize) -> i32

source§

#### fn is_in_subset(_: &isize) -> bool

source§

### impl SubsetOf<f32> for i32

source§

#### fn to_superset(&self) -> f32

source§

#### fn from_superset_unchecked(element: &f32) -> i32

source§

#### fn is_in_subset(_: &f32) -> bool

source§

### impl SubsetOf<f64> for i32

source§

#### fn to_superset(&self) -> f64

source§

#### fn from_superset_unchecked(element: &f64) -> i32

source§

#### fn is_in_subset(_: &f64) -> bool

source§

### impl SubsetOf<i8> for i64

source§

#### fn to_superset(&self) -> i8

source§

#### fn from_superset_unchecked(element: &i8) -> i64

source§

#### fn is_in_subset(_: &i8) -> bool

source§

### impl SubsetOf<i16> for i64

source§

#### fn to_superset(&self) -> i16

source§

#### fn from_superset_unchecked(element: &i16) -> i64

source§

#### fn is_in_subset(_: &i16) -> bool

source§

### impl SubsetOf<i32> for i64

source§

#### fn to_superset(&self) -> i32

source§

#### fn from_superset_unchecked(element: &i32) -> i64

source§

#### fn is_in_subset(_: &i32) -> bool

source§

### impl SubsetOf<i64> for i64

source§

#### fn to_superset(&self) -> i64

source§

#### fn from_superset_unchecked(element: &i64) -> i64

source§

#### fn is_in_subset(_: &i64) -> bool

source§

### impl SubsetOf<i128> for i64

source§

#### fn to_superset(&self) -> i128

source§

#### fn from_superset_unchecked(element: &i128) -> i64

source§

#### fn is_in_subset(_: &i128) -> bool

source§

### impl SubsetOf<isize> for i64

source§

#### fn to_superset(&self) -> isize

source§

#### fn from_superset_unchecked(element: &isize) -> i64

source§

#### fn is_in_subset(_: &isize) -> bool

source§

### impl SubsetOf<f32> for i64

source§

#### fn to_superset(&self) -> f32

source§

#### fn from_superset_unchecked(element: &f32) -> i64

source§

#### fn is_in_subset(_: &f32) -> bool

source§

### impl SubsetOf<f64> for i64

source§

#### fn to_superset(&self) -> f64

source§

#### fn from_superset_unchecked(element: &f64) -> i64

source§

#### fn is_in_subset(_: &f64) -> bool

source§

### impl SubsetOf<i8> for i128

source§

#### fn to_superset(&self) -> i8

source§

#### fn from_superset_unchecked(element: &i8) -> i128

source§

#### fn is_in_subset(_: &i8) -> bool

source§

### impl SubsetOf<i16> for i128

source§

#### fn to_superset(&self) -> i16

source§

#### fn from_superset_unchecked(element: &i16) -> i128

source§

#### fn is_in_subset(_: &i16) -> bool

source§

### impl SubsetOf<i32> for i128

source§

#### fn to_superset(&self) -> i32

source§

#### fn from_superset_unchecked(element: &i32) -> i128

source§

#### fn is_in_subset(_: &i32) -> bool

source§

### impl SubsetOf<i64> for i128

source§

#### fn to_superset(&self) -> i64

source§

#### fn from_superset_unchecked(element: &i64) -> i128

source§

#### fn is_in_subset(_: &i64) -> bool

source§

### impl SubsetOf<i128> for i128

source§

#### fn to_superset(&self) -> i128

source§

#### fn from_superset_unchecked(element: &i128) -> i128

source§

#### fn is_in_subset(_: &i128) -> bool

source§

### impl SubsetOf<isize> for i128

source§

#### fn to_superset(&self) -> isize

source§

#### fn from_superset_unchecked(element: &isize) -> i128

source§

#### fn is_in_subset(_: &isize) -> bool

source§

### impl SubsetOf<f32> for i128

source§

#### fn to_superset(&self) -> f32

source§

#### fn from_superset_unchecked(element: &f32) -> i128

source§

#### fn is_in_subset(_: &f32) -> bool

source§

### impl SubsetOf<f64> for i128

source§

#### fn to_superset(&self) -> f64

source§

#### fn from_superset_unchecked(element: &f64) -> i128

source§

#### fn is_in_subset(_: &f64) -> bool

source§

### impl SubsetOf<i8> for isize

source§

#### fn to_superset(&self) -> i8

source§

#### fn from_superset_unchecked(element: &i8) -> isize

source§

#### fn is_in_subset(_: &i8) -> bool

source§

### impl SubsetOf<i16> for isize

source§

#### fn to_superset(&self) -> i16

source§

#### fn from_superset_unchecked(element: &i16) -> isize

source§

#### fn is_in_subset(_: &i16) -> bool

source§

### impl SubsetOf<i32> for isize

source§

#### fn to_superset(&self) -> i32

source§

#### fn from_superset_unchecked(element: &i32) -> isize

source§

#### fn is_in_subset(_: &i32) -> bool

source§

### impl SubsetOf<i64> for isize

source§

#### fn to_superset(&self) -> i64

source§

#### fn from_superset_unchecked(element: &i64) -> isize

source§

#### fn is_in_subset(_: &i64) -> bool

source§

### impl SubsetOf<i128> for isize

source§

#### fn to_superset(&self) -> i128

source§

#### fn from_superset_unchecked(element: &i128) -> isize

source§

#### fn is_in_subset(_: &i128) -> bool

source§

### impl SubsetOf<isize> for isize

source§

#### fn to_superset(&self) -> isize

source§

#### fn from_superset_unchecked(element: &isize) -> isize

source§

#### fn is_in_subset(_: &isize) -> bool

source§

### impl SubsetOf<f32> for isize

source§

#### fn to_superset(&self) -> f32

source§

#### fn from_superset_unchecked(element: &f32) -> isize

source§

#### fn is_in_subset(_: &f32) -> bool

source§

### impl SubsetOf<f64> for isize

source§

#### fn to_superset(&self) -> f64

source§

#### fn from_superset_unchecked(element: &f64) -> isize

source§

#### fn is_in_subset(_: &f64) -> bool

source§

### impl SubsetOf<f32> for f32

source§

#### fn to_superset(&self) -> f32

source§

#### fn from_superset_unchecked(element: &f32) -> f32

source§

#### fn is_in_subset(_: &f32) -> bool

source§

### impl SubsetOf<f64> for f32

source§

#### fn to_superset(&self) -> f64

source§

#### fn from_superset_unchecked(element: &f64) -> f32

source§

#### fn is_in_subset(_: &f64) -> bool

source§

### impl SubsetOf<f32> for f64

source§

#### fn to_superset(&self) -> f32

source§

#### fn from_superset_unchecked(element: &f32) -> f64

source§

#### fn is_in_subset(_: &f32) -> bool

source§

### impl SubsetOf<f64> for f64

source§

#### fn to_superset(&self) -> f64

source§

#### fn from_superset_unchecked(element: &f64) -> f64

source§

#### fn is_in_subset(_: &f64) -> bool

source§

### impl<N1, N2: SupersetOf<N1>> SubsetOf<Complex<N2>> for Complex<N1>

source§

#### fn to_superset(&self) -> Complex<N2>

source§

#### fn from_superset_unchecked(element: &Complex<N2>) -> Complex<N1>

source§

#### fn is_in_subset(c: &Complex<N2>) -> bool

source§

### impl<N2: Zero + SupersetOf<u8>> SubsetOf<Complex<N2>> for u8

source§

#### fn to_superset(&self) -> Complex<N2>

source§

#### fn from_superset_unchecked(element: &Complex<N2>) -> u8

source§

#### fn is_in_subset(c: &Complex<N2>) -> bool

source§

### impl<N2: Zero + SupersetOf<u16>> SubsetOf<Complex<N2>> for u16

source§

#### fn to_superset(&self) -> Complex<N2>

source§

#### fn from_superset_unchecked(element: &Complex<N2>) -> u16

source§

#### fn is_in_subset(c: &Complex<N2>) -> bool

source§

### impl<N2: Zero + SupersetOf<u32>> SubsetOf<Complex<N2>> for u32

source§

#### fn to_superset(&self) -> Complex<N2>

source§

#### fn from_superset_unchecked(element: &Complex<N2>) -> u32

source§

#### fn is_in_subset(c: &Complex<N2>) -> bool

source§

### impl<N2: Zero + SupersetOf<u64>> SubsetOf<Complex<N2>> for u64

source§

#### fn to_superset(&self) -> Complex<N2>

source§

#### fn from_superset_unchecked(element: &Complex<N2>) -> u64

source§

#### fn is_in_subset(c: &Complex<N2>) -> bool

source§

### impl<N2: Zero + SupersetOf<u128>> SubsetOf<Complex<N2>> for u128

source§

#### fn to_superset(&self) -> Complex<N2>

source§

#### fn from_superset_unchecked(element: &Complex<N2>) -> u128

source§

#### fn is_in_subset(c: &Complex<N2>) -> bool

source§

### impl<N2: Zero + SupersetOf<usize>> SubsetOf<Complex<N2>> for usize

source§

#### fn to_superset(&self) -> Complex<N2>

source§

#### fn from_superset_unchecked(element: &Complex<N2>) -> usize

source§

#### fn is_in_subset(c: &Complex<N2>) -> bool

source§

### impl<N2: Zero + SupersetOf<i8>> SubsetOf<Complex<N2>> for i8

source§

#### fn to_superset(&self) -> Complex<N2>

source§

#### fn from_superset_unchecked(element: &Complex<N2>) -> i8

source§

#### fn is_in_subset(c: &Complex<N2>) -> bool

source§

### impl<N2: Zero + SupersetOf<i16>> SubsetOf<Complex<N2>> for i16

source§

#### fn to_superset(&self) -> Complex<N2>

source§

#### fn from_superset_unchecked(element: &Complex<N2>) -> i16

source§

#### fn is_in_subset(c: &Complex<N2>) -> bool

source§

### impl<N2: Zero + SupersetOf<i32>> SubsetOf<Complex<N2>> for i32

source§

#### fn to_superset(&self) -> Complex<N2>

source§

#### fn from_superset_unchecked(element: &Complex<N2>) -> i32

source§

#### fn is_in_subset(c: &Complex<N2>) -> bool

source§

### impl<N2: Zero + SupersetOf<i64>> SubsetOf<Complex<N2>> for i64

source§

#### fn to_superset(&self) -> Complex<N2>

source§

#### fn from_superset_unchecked(element: &Complex<N2>) -> i64

source§

#### fn is_in_subset(c: &Complex<N2>) -> bool

source§

### impl<N2: Zero + SupersetOf<i128>> SubsetOf<Complex<N2>> for i128

source§

#### fn to_superset(&self) -> Complex<N2>

source§

#### fn from_superset_unchecked(element: &Complex<N2>) -> i128

source§

#### fn is_in_subset(c: &Complex<N2>) -> bool

source§

### impl<N2: Zero + SupersetOf<isize>> SubsetOf<Complex<N2>> for isize

source§

#### fn to_superset(&self) -> Complex<N2>

source§

#### fn from_superset_unchecked(element: &Complex<N2>) -> isize

source§

#### fn is_in_subset(c: &Complex<N2>) -> bool

source§

### impl<N2: Zero + SupersetOf<f32>> SubsetOf<Complex<N2>> for f32

source§

#### fn to_superset(&self) -> Complex<N2>

source§

#### fn from_superset_unchecked(element: &Complex<N2>) -> f32

source§

#### fn is_in_subset(c: &Complex<N2>) -> bool

source§

### impl<N2: Zero + SupersetOf<f64>> SubsetOf<Complex<N2>> for f64

source§

#### fn to_superset(&self) -> Complex<N2>

source§

#### fn from_superset_unchecked(element: &Complex<N2>) -> f64

source§

#### fn is_in_subset(c: &Complex<N2>) -> bool

source§

### impl<N2> SubsetOf<AutoSimd<N2>> for u8 where
AutoSimd<N2>: SimdValue + Copy,
<AutoSimd<N2> as SimdValue>::Element: SupersetOf<u8> + PartialEq,

source§

#### fn to_superset(&self) -> AutoSimd<N2>

source§

#### fn from_superset_unchecked(element: &AutoSimd<N2>) -> u8

source§

#### fn is_in_subset(c: &AutoSimd<N2>) -> bool

source§

### impl<N2> SubsetOf<AutoSimd<N2>> for u16 where
AutoSimd<N2>: SimdValue + Copy,
<AutoSimd<N2> as SimdValue>::Element: SupersetOf<u16> + PartialEq,

source§

#### fn to_superset(&self) -> AutoSimd<N2>

source§

#### fn from_superset_unchecked(element: &AutoSimd<N2>) -> u16

source§

#### fn is_in_subset(c: &AutoSimd<N2>) -> bool

source§

### impl<N2> SubsetOf<AutoSimd<N2>> for u32 where
AutoSimd<N2>: SimdValue + Copy,
<AutoSimd<N2> as SimdValue>::Element: SupersetOf<u32> + PartialEq,

source§

#### fn to_superset(&self) -> AutoSimd<N2>

source§

#### fn from_superset_unchecked(element: &AutoSimd<N2>) -> u32

source§

#### fn is_in_subset(c: &AutoSimd<N2>) -> bool

source§

### impl<N2> SubsetOf<AutoSimd<N2>> for u64 where
AutoSimd<N2>: SimdValue + Copy,
<AutoSimd<N2> as SimdValue>::Element: SupersetOf<u64> + PartialEq,

source§

#### fn to_superset(&self) -> AutoSimd<N2>

source§

#### fn from_superset_unchecked(element: &AutoSimd<N2>) -> u64

source§

#### fn is_in_subset(c: &AutoSimd<N2>) -> bool

source§

### impl<N2> SubsetOf<AutoSimd<N2>> for usize where
AutoSimd<N2>: SimdValue + Copy,
<AutoSimd<N2> as SimdValue>::Element: SupersetOf<usize> + PartialEq,

source§

#### fn to_superset(&self) -> AutoSimd<N2>

source§

#### fn from_superset_unchecked(element: &AutoSimd<N2>) -> usize

source§

#### fn is_in_subset(c: &AutoSimd<N2>) -> bool

source§

### impl<N2> SubsetOf<AutoSimd<N2>> for i8 where
AutoSimd<N2>: SimdValue + Copy,
<AutoSimd<N2> as SimdValue>::Element: SupersetOf<i8> + PartialEq,

source§

#### fn to_superset(&self) -> AutoSimd<N2>

source§

#### fn from_superset_unchecked(element: &AutoSimd<N2>) -> i8

source§

#### fn is_in_subset(c: &AutoSimd<N2>) -> bool

source§

### impl<N2> SubsetOf<AutoSimd<N2>> for i16 where
AutoSimd<N2>: SimdValue + Copy,
<AutoSimd<N2> as SimdValue>::Element: SupersetOf<i16> + PartialEq,

source§

#### fn to_superset(&self) -> AutoSimd<N2>

source§

#### fn from_superset_unchecked(element: &AutoSimd<N2>) -> i16

source§

#### fn is_in_subset(c: &AutoSimd<N2>) -> bool

source§

### impl<N2> SubsetOf<AutoSimd<N2>> for i32 where
AutoSimd<N2>: SimdValue + Copy,
<AutoSimd<N2> as SimdValue>::Element: SupersetOf<i32> + PartialEq,

source§

#### fn to_superset(&self) -> AutoSimd<N2>

source§

#### fn from_superset_unchecked(element: &AutoSimd<N2>) -> i32

source§

#### fn is_in_subset(c: &AutoSimd<N2>) -> bool

source§

### impl<N2> SubsetOf<AutoSimd<N2>> for i64 where
AutoSimd<N2>: SimdValue + Copy,
<AutoSimd<N2> as SimdValue>::Element: SupersetOf<i64> + PartialEq,

source§

#### fn to_superset(&self) -> AutoSimd<N2>

source§

#### fn from_superset_unchecked(element: &AutoSimd<N2>) -> i64

source§

#### fn is_in_subset(c: &AutoSimd<N2>) -> bool

source§

### impl<N2> SubsetOf<AutoSimd<N2>> for isize where
AutoSimd<N2>: SimdValue + Copy,
<AutoSimd<N2> as SimdValue>::Element: SupersetOf<isize> + PartialEq,

source§

#### fn to_superset(&self) -> AutoSimd<N2>

source§

#### fn from_superset_unchecked(element: &AutoSimd<N2>) -> isize

source§

#### fn is_in_subset(c: &AutoSimd<N2>) -> bool

source§

### impl<N2> SubsetOf<AutoSimd<N2>> for f32 where
AutoSimd<N2>: SimdValue + Copy,
<AutoSimd<N2> as SimdValue>::Element: SupersetOf<f32> + PartialEq,

source§

#### fn to_superset(&self) -> AutoSimd<N2>

source§

#### fn from_superset_unchecked(element: &AutoSimd<N2>) -> f32

source§

#### fn is_in_subset(c: &AutoSimd<N2>) -> bool

source§

### impl<N2> SubsetOf<AutoSimd<N2>> for f64 where
AutoSimd<N2>: SimdValue + Copy,
<AutoSimd<N2> as SimdValue>::Element: SupersetOf<f64> + PartialEq,

source§

#### fn to_superset(&self) -> AutoSimd<N2>

source§

#### fn from_superset_unchecked(element: &AutoSimd<N2>) -> f64

source§

#### fn is_in_subset(c: &AutoSimd<N2>) -> bool

## Implementors§

source§

### impl SubsetOf<AutoSimd<[f32; 2]>> for AutoSimd<[f32; 2]>

source§

### impl SubsetOf<AutoSimd<[f32; 4]>> for AutoSimd<[f32; 4]>

source§

### impl SubsetOf<AutoSimd<[f32; 8]>> for AutoSimd<[f32; 8]>

source§

### impl SubsetOf<AutoSimd<[f32; 16]>> for AutoSimd<[f32; 16]>

source§

### impl SubsetOf<AutoSimd<[f64; 2]>> for AutoSimd<[f64; 2]>

source§

### impl SubsetOf<AutoSimd<[f64; 4]>> for AutoSimd<[f64; 4]>

source§

### impl SubsetOf<AutoSimd<[f64; 8]>> for AutoSimd<[f64; 8]>

source§

### impl SubsetOf<AutoSimd<[i8; 2]>> for AutoSimd<[i8; 2]>

source§

### impl SubsetOf<AutoSimd<[i8; 4]>> for AutoSimd<[i8; 4]>

source§

### impl SubsetOf<AutoSimd<[i8; 8]>> for AutoSimd<[i8; 8]>

source§

### impl SubsetOf<AutoSimd<[i8; 16]>> for AutoSimd<[i8; 16]>

source§

### impl SubsetOf<AutoSimd<[i8; 32]>> for AutoSimd<[i8; 32]>

source§

### impl SubsetOf<AutoSimd<[i16; 2]>> for AutoSimd<[i16; 2]>

source§

### impl SubsetOf<AutoSimd<[i16; 4]>> for AutoSimd<[i16; 4]>

source§

### impl SubsetOf<AutoSimd<[i16; 8]>> for AutoSimd<[i16; 8]>

source§

### impl SubsetOf<AutoSimd<[i16; 16]>> for AutoSimd<[i16; 16]>

source§

### impl SubsetOf<AutoSimd<[i16; 32]>> for AutoSimd<[i16; 32]>

source§

### impl SubsetOf<AutoSimd<[i32; 2]>> for AutoSimd<[i32; 2]>

source§

### impl SubsetOf<AutoSimd<[i32; 4]>> for AutoSimd<[i32; 4]>

source§

### impl SubsetOf<AutoSimd<[i32; 8]>> for AutoSimd<[i32; 8]>

source§

### impl SubsetOf<AutoSimd<[i32; 16]>> for AutoSimd<[i32; 16]>

source§

### impl SubsetOf<AutoSimd<[i64; 2]>> for AutoSimd<[i64; 2]>

source§

### impl SubsetOf<AutoSimd<[i64; 4]>> for AutoSimd<[i64; 4]>

source§

### impl SubsetOf<AutoSimd<[i64; 8]>> for AutoSimd<[i64; 8]>

source§

### impl SubsetOf<AutoSimd<[i128; 1]>> for AutoSimd<[i128; 1]>

source§

### impl SubsetOf<AutoSimd<[i128; 2]>> for AutoSimd<[i128; 2]>

source§

### impl SubsetOf<AutoSimd<[i128; 4]>> for AutoSimd<[i128; 4]>

source§

### impl SubsetOf<AutoSimd<[isize; 2]>> for AutoSimd<[isize; 2]>

source§

### impl SubsetOf<AutoSimd<[isize; 4]>> for AutoSimd<[isize; 4]>

source§

### impl SubsetOf<AutoSimd<[isize; 8]>> for AutoSimd<[isize; 8]>

source§

### impl SubsetOf<AutoSimd<[u8; 2]>> for AutoSimd<[u8; 2]>

source§

### impl SubsetOf<AutoSimd<[u8; 4]>> for AutoSimd<[u8; 4]>

source§

### impl SubsetOf<AutoSimd<[u8; 8]>> for AutoSimd<[u8; 8]>

source§

### impl SubsetOf<AutoSimd<[u8; 16]>> for AutoSimd<[u8; 16]>

source§

### impl SubsetOf<AutoSimd<[u8; 32]>> for AutoSimd<[u8; 32]>

source§

### impl SubsetOf<AutoSimd<[u16; 2]>> for AutoSimd<[u16; 2]>

source§

### impl SubsetOf<AutoSimd<[u16; 4]>> for AutoSimd<[u16; 4]>

source§

### impl SubsetOf<AutoSimd<[u16; 8]>> for AutoSimd<[u16; 8]>

source§

### impl SubsetOf<AutoSimd<[u16; 16]>> for AutoSimd<[u16; 16]>

source§

### impl SubsetOf<AutoSimd<[u16; 32]>> for AutoSimd<[u16; 32]>

source§

### impl SubsetOf<AutoSimd<[u32; 2]>> for AutoSimd<[u32; 2]>

source§

### impl SubsetOf<AutoSimd<[u32; 4]>> for AutoSimd<[u32; 4]>

source§

### impl SubsetOf<AutoSimd<[u32; 8]>> for AutoSimd<[u32; 8]>

source§

### impl SubsetOf<AutoSimd<[u32; 16]>> for AutoSimd<[u32; 16]>

source§

### impl SubsetOf<AutoSimd<[u64; 2]>> for AutoSimd<[u64; 2]>

source§

### impl SubsetOf<AutoSimd<[u64; 4]>> for AutoSimd<[u64; 4]>

source§

### impl SubsetOf<AutoSimd<[u64; 8]>> for AutoSimd<[u64; 8]>

source§

### impl SubsetOf<AutoSimd<[u128; 1]>> for AutoSimd<[u128; 1]>

source§

### impl SubsetOf<AutoSimd<[u128; 2]>> for AutoSimd<[u128; 2]>

source§

### impl SubsetOf<AutoSimd<[u128; 4]>> for AutoSimd<[u128; 4]>

source§

### impl SubsetOf<AutoSimd<[usize; 2]>> for AutoSimd<[usize; 2]>

source§

### impl SubsetOf<AutoSimd<[usize; 4]>> for AutoSimd<[usize; 4]>

source§

### impl SubsetOf<AutoSimd<[usize; 8]>> for AutoSimd<[usize; 8]>