pub type ProtoOrIfaceArray = [*mut JSObject; 553];
Expand description

An array of *mut JSObject of size PROTO_OR_IFACE_LENGTH.

Implementations§

source§

impl<T, const N: usize> [T; N]

1.55.0 · source

pub fn map<F, U>(self, f: F) -> [U; N]where F: FnMut(T) -> U,

Returns an array of the same size as self, with function f applied to each element in order.

If you don’t necessarily need a new fixed-size array, consider using Iterator::map instead.

Note on performance and stack usage

Unfortunately, usages of this method are currently not always optimized as well as they could be. This mainly concerns large arrays, as mapping over small arrays seem to be optimized just fine. Also note that in debug mode (i.e. without any optimizations), this method can use a lot of stack space (a few times the size of the array or more).

Therefore, in performance-critical code, try to avoid using this method on large arrays or check the emitted code. Also try to avoid chained maps (e.g. arr.map(...).map(...)).

In many cases, you can instead use Iterator::map by calling .iter() or .into_iter() on your array. [T; N]::map is only necessary if you really need a new array of the same size as the result. Rust’s lazy iterators tend to get optimized very well.

Examples
let x = [1, 2, 3];
let y = x.map(|v| v + 1);
assert_eq!(y, [2, 3, 4]);

let x = [1, 2, 3];
let mut temp = 0;
let y = x.map(|v| { temp += 1; v * temp });
assert_eq!(y, [1, 4, 9]);

let x = ["Ferris", "Bueller's", "Day", "Off"];
let y = x.map(|v| v.len());
assert_eq!(y, [6, 9, 3, 3]);
source

pub fn try_map<F, R>( self, f: F ) -> <<R as Try>::Residual as Residual<[<R as Try>::Output; N]>>::TryTypewhere F: FnMut(T) -> R, R: Try, <R as Try>::Residual: Residual<[<R as Try>::Output; N]>,

🔬This is a nightly-only experimental API. (array_try_map)

A fallible function f applied to each element on array self in order to return an array the same size as self or the first error encountered.

The return type of this function depends on the return type of the closure. If you return Result<T, E> from the closure, you’ll get a Result<[T; N], E>. If you return Option<T> from the closure, you’ll get an Option<[T; N]>.

Examples
#![feature(array_try_map)]
let a = ["1", "2", "3"];
let b = a.try_map(|v| v.parse::<u32>()).unwrap().map(|v| v + 1);
assert_eq!(b, [2, 3, 4]);

let a = ["1", "2a", "3"];
let b = a.try_map(|v| v.parse::<u32>());
assert!(b.is_err());

use std::num::NonZeroU32;
let z = [1, 2, 0, 3, 4];
assert_eq!(z.try_map(NonZeroU32::new), None);
let a = [1, 2, 3];
let b = a.try_map(NonZeroU32::new);
let c = b.map(|x| x.map(NonZeroU32::get));
assert_eq!(c, Some(a));
1.57.0 (const: 1.57.0) · source

pub const fn as_slice(&self) -> &[T]

Returns a slice containing the entire array. Equivalent to &s[..].

1.57.0 · source

pub fn as_mut_slice(&mut self) -> &mut [T]

Returns a mutable slice containing the entire array. Equivalent to &mut s[..].

source

pub fn each_ref(&self) -> [&T; N]

🔬This is a nightly-only experimental API. (array_methods)

Borrows each element and returns an array of references with the same size as self.

Example
#![feature(array_methods)]

let floats = [3.1, 2.7, -1.0];
let float_refs: [&f64; 3] = floats.each_ref();
assert_eq!(float_refs, [&3.1, &2.7, &-1.0]);

This method is particularly useful if combined with other methods, like map. This way, you can avoid moving the original array if its elements are not Copy.

#![feature(array_methods)]

let strings = ["Ferris".to_string(), "♥".to_string(), "Rust".to_string()];
let is_ascii = strings.each_ref().map(|s| s.is_ascii());
assert_eq!(is_ascii, [true, false, true]);

// We can still access the original array: it has not been moved.
assert_eq!(strings.len(), 3);
source

pub fn each_mut(&mut self) -> [&mut T; N]

🔬This is a nightly-only experimental API. (array_methods)

Borrows each element mutably and returns an array of mutable references with the same size as self.

Example
#![feature(array_methods)]

let mut floats = [3.1, 2.7, -1.0];
let float_refs: [&mut f64; 3] = floats.each_mut();
*float_refs[0] = 0.0;
assert_eq!(float_refs, [&mut 0.0, &mut 2.7, &mut -1.0]);
assert_eq!(floats, [0.0, 2.7, -1.0]);
source

pub fn split_array_ref<const M: usize>(&self) -> (&[T; M], &[T])

🔬This is a nightly-only experimental API. (split_array)

Divides one array reference into two at an index.

The first will contain all indices from [0, M) (excluding the index M itself) and the second will contain all indices from [M, N) (excluding the index N itself).

Panics

Panics if M > N.

Examples
#![feature(split_array)]

let v = [1, 2, 3, 4, 5, 6];

{
   let (left, right) = v.split_array_ref::<0>();
   assert_eq!(left, &[]);
   assert_eq!(right, &[1, 2, 3, 4, 5, 6]);
}

{
    let (left, right) = v.split_array_ref::<2>();
    assert_eq!(left, &[1, 2]);
    assert_eq!(right, &[3, 4, 5, 6]);
}

{
    let (left, right) = v.split_array_ref::<6>();
    assert_eq!(left, &[1, 2, 3, 4, 5, 6]);
    assert_eq!(right, &[]);
}
source

pub fn split_array_mut<const M: usize>(&mut self) -> (&mut [T; M], &mut [T])

🔬This is a nightly-only experimental API. (split_array)

Divides one mutable array reference into two at an index.

The first will contain all indices from [0, M) (excluding the index M itself) and the second will contain all indices from [M, N) (excluding the index N itself).

Panics

Panics if M > N.

Examples
#![feature(split_array)]

let mut v = [1, 0, 3, 0, 5, 6];
let (left, right) = v.split_array_mut::<2>();
assert_eq!(left, &mut [1, 0][..]);
assert_eq!(right, &mut [3, 0, 5, 6]);
left[1] = 2;
right[1] = 4;
assert_eq!(v, [1, 2, 3, 4, 5, 6]);
source

pub fn rsplit_array_ref<const M: usize>(&self) -> (&[T], &[T; M])

🔬This is a nightly-only experimental API. (split_array)

Divides one array reference into two at an index from the end.

The first will contain all indices from [0, N - M) (excluding the index N - M itself) and the second will contain all indices from [N - M, N) (excluding the index N itself).

Panics

Panics if M > N.

Examples
#![feature(split_array)]

let v = [1, 2, 3, 4, 5, 6];

{
   let (left, right) = v.rsplit_array_ref::<0>();
   assert_eq!(left, &[1, 2, 3, 4, 5, 6]);
   assert_eq!(right, &[]);
}

{
    let (left, right) = v.rsplit_array_ref::<2>();
    assert_eq!(left, &[1, 2, 3, 4]);
    assert_eq!(right, &[5, 6]);
}

{
    let (left, right) = v.rsplit_array_ref::<6>();
    assert_eq!(left, &[]);
    assert_eq!(right, &[1, 2, 3, 4, 5, 6]);
}
source

pub fn rsplit_array_mut<const M: usize>(&mut self) -> (&mut [T], &mut [T; M])

🔬This is a nightly-only experimental API. (split_array)

Divides one mutable array reference into two at an index from the end.

The first will contain all indices from [0, N - M) (excluding the index N - M itself) and the second will contain all indices from [N - M, N) (excluding the index N itself).

Panics

Panics if M > N.

Examples
#![feature(split_array)]

let mut v = [1, 0, 3, 0, 5, 6];
let (left, right) = v.rsplit_array_mut::<4>();
assert_eq!(left, &mut [1, 0]);
assert_eq!(right, &mut [3, 0, 5, 6][..]);
left[1] = 2;
right[1] = 4;
assert_eq!(v, [1, 2, 3, 4, 5, 6]);

Trait Implementations§

source§

impl<T> Array for [T; 0]where T: Default,

§

type Item = T

The type of the items in the thing.
source§

const CAPACITY: usize = 0usize

The number of slots in the thing.
source§

fn as_slice(&self) -> &[T]

Gives a shared slice over the whole thing. Read more
source§

fn as_slice_mut(&mut self) -> &mut [T]

Gives a unique slice over the whole thing. Read more
source§

fn default() -> [T; 0]

Create a default-initialized instance of ourself, similar to the Default trait, but implemented for the same range of sizes as Array.
source§

impl<T> Array for [T; 1]where T: Default,

§

type Item = T

The type of the items in the thing.
source§

const CAPACITY: usize = 1usize

The number of slots in the thing.
source§

fn as_slice(&self) -> &[T]

Gives a shared slice over the whole thing. Read more
source§

fn as_slice_mut(&mut self) -> &mut [T]

Gives a unique slice over the whole thing. Read more
source§

fn default() -> [T; 1]

Create a default-initialized instance of ourself, similar to the Default trait, but implemented for the same range of sizes as Array.
source§

impl<T> Array for [T; 10]where T: Default,

§

type Item = T

The type of the items in the thing.
source§

const CAPACITY: usize = 10usize

The number of slots in the thing.
source§

fn as_slice(&self) -> &[T]

Gives a shared slice over the whole thing. Read more
source§

fn as_slice_mut(&mut self) -> &mut [T]

Gives a unique slice over the whole thing. Read more
source§

fn default() -> [T; 10]

Create a default-initialized instance of ourself, similar to the Default trait, but implemented for the same range of sizes as Array.
source§

impl<T> Array for [T; 1024]where T: Default,

§

type Item = T

The type of the items in the thing.
source§

const CAPACITY: usize = 1_024usize

The number of slots in the thing.
source§

fn as_slice(&self) -> &[T]

Gives a shared slice over the whole thing. Read more
source§

fn as_slice_mut(&mut self) -> &mut [T]

Gives a unique slice over the whole thing. Read more
source§

fn default() -> [T; 1024]

Create a default-initialized instance of ourself, similar to the Default trait, but implemented for the same range of sizes as Array.
source§

impl<T> Array for [T; 11]where T: Default,

§

type Item = T

The type of the items in the thing.
source§

const CAPACITY: usize = 11usize

The number of slots in the thing.
source§

fn as_slice(&self) -> &[T]

Gives a shared slice over the whole thing. Read more
source§

fn as_slice_mut(&mut self) -> &mut [T]

Gives a unique slice over the whole thing. Read more
source§

fn default() -> [T; 11]

Create a default-initialized instance of ourself, similar to the Default trait, but implemented for the same range of sizes as Array.
source§

impl<T> Array for [T; 12]where T: Default,

§

type Item = T

The type of the items in the thing.
source§

const CAPACITY: usize = 12usize

The number of slots in the thing.
source§

fn as_slice(&self) -> &[T]

Gives a shared slice over the whole thing. Read more
source§

fn as_slice_mut(&mut self) -> &mut [T]

Gives a unique slice over the whole thing. Read more
source§

fn default() -> [T; 12]

Create a default-initialized instance of ourself, similar to the Default trait, but implemented for the same range of sizes as Array.
source§

impl<T> Array for [T; 128]where T: Default,

§

type Item = T

The type of the items in the thing.
source§

const CAPACITY: usize = 128usize

The number of slots in the thing.
source§

fn as_slice(&self) -> &[T]

Gives a shared slice over the whole thing. Read more
source§

fn as_slice_mut(&mut self) -> &mut [T]

Gives a unique slice over the whole thing. Read more
source§

fn default() -> [T; 128]

Create a default-initialized instance of ourself, similar to the Default trait, but implemented for the same range of sizes as Array.
source§

impl<T> Array for [T; 13]where T: Default,

§

type Item = T

The type of the items in the thing.
source§

const CAPACITY: usize = 13usize

The number of slots in the thing.
source§

fn as_slice(&self) -> &[T]

Gives a shared slice over the whole thing. Read more
source§

fn as_slice_mut(&mut self) -> &mut [T]

Gives a unique slice over the whole thing. Read more
source§

fn default() -> [T; 13]

Create a default-initialized instance of ourself, similar to the Default trait, but implemented for the same range of sizes as Array.
source§

impl<T> Array for [T; 14]where T: Default,

§

type Item = T

The type of the items in the thing.
source§

const CAPACITY: usize = 14usize

The number of slots in the thing.
source§

fn as_slice(&self) -> &[T]

Gives a shared slice over the whole thing. Read more
source§

fn as_slice_mut(&mut self) -> &mut [T]

Gives a unique slice over the whole thing. Read more
source§

fn default() -> [T; 14]

Create a default-initialized instance of ourself, similar to the Default trait, but implemented for the same range of sizes as Array.
source§

impl<T> Array for [T; 15]where T: Default,

§

type Item = T

The type of the items in the thing.
source§

const CAPACITY: usize = 15usize

The number of slots in the thing.
source§

fn as_slice(&self) -> &[T]

Gives a shared slice over the whole thing. Read more
source§

fn as_slice_mut(&mut self) -> &mut [T]

Gives a unique slice over the whole thing. Read more
source§

fn default() -> [T; 15]

Create a default-initialized instance of ourself, similar to the Default trait, but implemented for the same range of sizes as Array.
source§

impl<T> Array for [T; 16]where T: Default,

§

type Item = T

The type of the items in the thing.
source§

const CAPACITY: usize = 16usize

The number of slots in the thing.
source§

fn as_slice(&self) -> &[T]

Gives a shared slice over the whole thing. Read more
source§

fn as_slice_mut(&mut self) -> &mut [T]

Gives a unique slice over the whole thing. Read more
source§

fn default() -> [T; 16]

Create a default-initialized instance of ourself, similar to the Default trait, but implemented for the same range of sizes as Array.
source§

impl<T> Array for [T; 17]where T: Default,

§

type Item = T

The type of the items in the thing.
source§

const CAPACITY: usize = 17usize

The number of slots in the thing.
source§

fn as_slice(&self) -> &[T]

Gives a shared slice over the whole thing. Read more
source§

fn as_slice_mut(&mut self) -> &mut [T]

Gives a unique slice over the whole thing. Read more
source§

fn default() -> [T; 17]

Create a default-initialized instance of ourself, similar to the Default trait, but implemented for the same range of sizes as Array.
source§

impl<T> Array for [T; 18]where T: Default,

§

type Item = T

The type of the items in the thing.
source§

const CAPACITY: usize = 18usize

The number of slots in the thing.
source§

fn as_slice(&self) -> &[T]

Gives a shared slice over the whole thing. Read more
source§

fn as_slice_mut(&mut self) -> &mut [T]

Gives a unique slice over the whole thing. Read more
source§

fn default() -> [T; 18]

Create a default-initialized instance of ourself, similar to the Default trait, but implemented for the same range of sizes as Array.
source§

impl<T> Array for [T; 19]where T: Default,

§

type Item = T

The type of the items in the thing.
source§

const CAPACITY: usize = 19usize

The number of slots in the thing.
source§

fn as_slice(&self) -> &[T]

Gives a shared slice over the whole thing. Read more
source§

fn as_slice_mut(&mut self) -> &mut [T]

Gives a unique slice over the whole thing. Read more
source§

fn default() -> [T; 19]

Create a default-initialized instance of ourself, similar to the Default trait, but implemented for the same range of sizes as Array.
source§

impl<T> Array for [T; 2]where T: Default,

§

type Item = T

The type of the items in the thing.
source§

const CAPACITY: usize = 2usize

The number of slots in the thing.
source§

fn as_slice(&self) -> &[T]

Gives a shared slice over the whole thing. Read more
source§

fn as_slice_mut(&mut self) -> &mut [T]

Gives a unique slice over the whole thing. Read more
source§

fn default() -> [T; 2]

Create a default-initialized instance of ourself, similar to the Default trait, but implemented for the same range of sizes as Array.
source§

impl<T> Array for [T; 20]where T: Default,

§

type Item = T

The type of the items in the thing.
source§

const CAPACITY: usize = 20usize

The number of slots in the thing.
source§

fn as_slice(&self) -> &[T]

Gives a shared slice over the whole thing. Read more
source§

fn as_slice_mut(&mut self) -> &mut [T]

Gives a unique slice over the whole thing. Read more
source§

fn default() -> [T; 20]

Create a default-initialized instance of ourself, similar to the Default trait, but implemented for the same range of sizes as Array.
source§

impl<T> Array for [T; 2048]where T: Default,

§

type Item = T

The type of the items in the thing.
source§

const CAPACITY: usize = 2_048usize

The number of slots in the thing.
source§

fn as_slice(&self) -> &[T]

Gives a shared slice over the whole thing. Read more
source§

fn as_slice_mut(&mut self) -> &mut [T]

Gives a unique slice over the whole thing. Read more
source§

fn default() -> [T; 2048]

Create a default-initialized instance of ourself, similar to the Default trait, but implemented for the same range of sizes as Array.
source§

impl<T> Array for [T; 21]where T: Default,

§

type Item = T

The type of the items in the thing.
source§

const CAPACITY: usize = 21usize

The number of slots in the thing.
source§

fn as_slice(&self) -> &[T]

Gives a shared slice over the whole thing. Read more
source§

fn as_slice_mut(&mut self) -> &mut [T]

Gives a unique slice over the whole thing. Read more
source§

fn default() -> [T; 21]

Create a default-initialized instance of ourself, similar to the Default trait, but implemented for the same range of sizes as Array.
source§

impl<T> Array for [T; 22]where T: Default,

§

type Item = T

The type of the items in the thing.
source§

const CAPACITY: usize = 22usize

The number of slots in the thing.
source§

fn as_slice(&self) -> &[T]

Gives a shared slice over the whole thing. Read more
source§

fn as_slice_mut(&mut self) -> &mut [T]

Gives a unique slice over the whole thing. Read more
source§

fn default() -> [T; 22]

Create a default-initialized instance of ourself, similar to the Default trait, but implemented for the same range of sizes as Array.
source§

impl<T> Array for [T; 23]where T: Default,

§

type Item = T

The type of the items in the thing.
source§

const CAPACITY: usize = 23usize

The number of slots in the thing.
source§

fn as_slice(&self) -> &[T]

Gives a shared slice over the whole thing. Read more
source§

fn as_slice_mut(&mut self) -> &mut [T]

Gives a unique slice over the whole thing. Read more
source§

fn default() -> [T; 23]

Create a default-initialized instance of ourself, similar to the Default trait, but implemented for the same range of sizes as Array.
source§

impl<T> Array for [T; 24]where T: Default,

§

type Item = T

The type of the items in the thing.
source§

const CAPACITY: usize = 24usize

The number of slots in the thing.
source§

fn as_slice(&self) -> &[T]

Gives a shared slice over the whole thing. Read more
source§

fn as_slice_mut(&mut self) -> &mut [T]

Gives a unique slice over the whole thing. Read more
source§

fn default() -> [T; 24]

Create a default-initialized instance of ourself, similar to the Default trait, but implemented for the same range of sizes as Array.
source§

impl<T> Array for [T; 25]where T: Default,

§

type Item = T

The type of the items in the thing.
source§

const CAPACITY: usize = 25usize

The number of slots in the thing.
source§

fn as_slice(&self) -> &[T]

Gives a shared slice over the whole thing. Read more
source§

fn as_slice_mut(&mut self) -> &mut [T]

Gives a unique slice over the whole thing. Read more
source§

fn default() -> [T; 25]

Create a default-initialized instance of ourself, similar to the Default trait, but implemented for the same range of sizes as Array.
source§

impl<T> Array for [T; 256]where T: Default,

§

type Item = T

The type of the items in the thing.
source§

const CAPACITY: usize = 256usize

The number of slots in the thing.
source§

fn as_slice(&self) -> &[T]

Gives a shared slice over the whole thing. Read more
source§

fn as_slice_mut(&mut self) -> &mut [T]

Gives a unique slice over the whole thing. Read more
source§

fn default() -> [T; 256]

Create a default-initialized instance of ourself, similar to the Default trait, but implemented for the same range of sizes as Array.
source§

impl<T> Array for [T; 26]where T: Default,

§

type Item = T

The type of the items in the thing.
source§

const CAPACITY: usize = 26usize

The number of slots in the thing.
source§

fn as_slice(&self) -> &[T]

Gives a shared slice over the whole thing. Read more
source§

fn as_slice_mut(&mut self) -> &mut [T]

Gives a unique slice over the whole thing. Read more
source§

fn default() -> [T; 26]

Create a default-initialized instance of ourself, similar to the Default trait, but implemented for the same range of sizes as Array.
source§

impl<T> Array for [T; 27]where T: Default,

§

type Item = T

The type of the items in the thing.
source§

const CAPACITY: usize = 27usize

The number of slots in the thing.
source§

fn as_slice(&self) -> &[T]

Gives a shared slice over the whole thing. Read more
source§

fn as_slice_mut(&mut self) -> &mut [T]

Gives a unique slice over the whole thing. Read more
source§

fn default() -> [T; 27]

Create a default-initialized instance of ourself, similar to the Default trait, but implemented for the same range of sizes as Array.
source§

impl<T> Array for [T; 28]where T: Default,

§

type Item = T

The type of the items in the thing.
source§

const CAPACITY: usize = 28usize

The number of slots in the thing.
source§

fn as_slice(&self) -> &[T]

Gives a shared slice over the whole thing. Read more
source§

fn as_slice_mut(&mut self) -> &mut [T]

Gives a unique slice over the whole thing. Read more
source§

fn default() -> [T; 28]

Create a default-initialized instance of ourself, similar to the Default trait, but implemented for the same range of sizes as Array.
source§

impl<T> Array for [T; 29]where T: Default,

§

type Item = T

The type of the items in the thing.
source§

const CAPACITY: usize = 29usize

The number of slots in the thing.
source§

fn as_slice(&self) -> &[T]

Gives a shared slice over the whole thing. Read more
source§

fn as_slice_mut(&mut self) -> &mut [T]

Gives a unique slice over the whole thing. Read more
source§

fn default() -> [T; 29]

Create a default-initialized instance of ourself, similar to the Default trait, but implemented for the same range of sizes as Array.
source§

impl<T> Array for [T; 3]where T: Default,

§

type Item = T

The type of the items in the thing.
source§

const CAPACITY: usize = 3usize

The number of slots in the thing.
source§

fn as_slice(&self) -> &[T]

Gives a shared slice over the whole thing. Read more
source§

fn as_slice_mut(&mut self) -> &mut [T]

Gives a unique slice over the whole thing. Read more
source§

fn default() -> [T; 3]

Create a default-initialized instance of ourself, similar to the Default trait, but implemented for the same range of sizes as Array.
source§

impl<T> Array for [T; 30]where T: Default,

§

type Item = T

The type of the items in the thing.
source§

const CAPACITY: usize = 30usize

The number of slots in the thing.
source§

fn as_slice(&self) -> &[T]

Gives a shared slice over the whole thing. Read more
source§

fn as_slice_mut(&mut self) -> &mut [T]

Gives a unique slice over the whole thing. Read more
source§

fn default() -> [T; 30]

Create a default-initialized instance of ourself, similar to the Default trait, but implemented for the same range of sizes as Array.
source§

impl<T> Array for [T; 31]where T: Default,

§

type Item = T

The type of the items in the thing.
source§

const CAPACITY: usize = 31usize

The number of slots in the thing.
source§

fn as_slice(&self) -> &[T]

Gives a shared slice over the whole thing. Read more
source§

fn as_slice_mut(&mut self) -> &mut [T]

Gives a unique slice over the whole thing. Read more
source§

fn default() -> [T; 31]

Create a default-initialized instance of ourself, similar to the Default trait, but implemented for the same range of sizes as Array.
source§

impl<T> Array for [T; 32]where T: Default,

§

type Item = T

The type of the items in the thing.
source§

const CAPACITY: usize = 32usize

The number of slots in the thing.
source§

fn as_slice(&self) -> &[T]

Gives a shared slice over the whole thing. Read more
source§

fn as_slice_mut(&mut self) -> &mut [T]

Gives a unique slice over the whole thing. Read more
source§

fn default() -> [T; 32]

Create a default-initialized instance of ourself, similar to the Default trait, but implemented for the same range of sizes as Array.
source§

impl<T> Array for [T; 33]where T: Default,

§

type Item = T

The type of the items in the thing.
source§

const CAPACITY: usize = 33usize

The number of slots in the thing.
source§

fn as_slice(&self) -> &[T]

Gives a shared slice over the whole thing. Read more
source§

fn as_slice_mut(&mut self) -> &mut [T]

Gives a unique slice over the whole thing. Read more
source§

fn default() -> [T; 33]

Create a default-initialized instance of ourself, similar to the Default trait, but implemented for the same range of sizes as Array.
source§

impl<T> Array for [T; 4]where T: Default,

§

type Item = T

The type of the items in the thing.
source§

const CAPACITY: usize = 4usize

The number of slots in the thing.
source§

fn as_slice(&self) -> &[T]

Gives a shared slice over the whole thing. Read more
source§

fn as_slice_mut(&mut self) -> &mut [T]

Gives a unique slice over the whole thing. Read more
source§

fn default() -> [T; 4]

Create a default-initialized instance of ourself, similar to the Default trait, but implemented for the same range of sizes as Array.
source§

impl<T> Array for [T; 4096]where T: Default,

§

type Item = T

The type of the items in the thing.
source§

const CAPACITY: usize = 4_096usize

The number of slots in the thing.
source§

fn as_slice(&self) -> &[T]

Gives a shared slice over the whole thing. Read more
source§

fn as_slice_mut(&mut self) -> &mut [T]

Gives a unique slice over the whole thing. Read more
source§

fn default() -> [T; 4096]

Create a default-initialized instance of ourself, similar to the Default trait, but implemented for the same range of sizes as Array.
source§

impl<T> Array for [T; 5]where T: Default,

§

type Item = T

The type of the items in the thing.
source§

const CAPACITY: usize = 5usize

The number of slots in the thing.
source§

fn as_slice(&self) -> &[T]

Gives a shared slice over the whole thing. Read more
source§

fn as_slice_mut(&mut self) -> &mut [T]

Gives a unique slice over the whole thing. Read more
source§

fn default() -> [T; 5]

Create a default-initialized instance of ourself, similar to the Default trait, but implemented for the same range of sizes as Array.
source§

impl<T> Array for [T; 512]where T: Default,

§

type Item = T

The type of the items in the thing.
source§

const CAPACITY: usize = 512usize

The number of slots in the thing.
source§

fn as_slice(&self) -> &[T]

Gives a shared slice over the whole thing. Read more
source§

fn as_slice_mut(&mut self) -> &mut [T]

Gives a unique slice over the whole thing. Read more
source§

fn default() -> [T; 512]

Create a default-initialized instance of ourself, similar to the Default trait, but implemented for the same range of sizes as Array.
source§

impl<T> Array for [T; 6]where T: Default,

§

type Item = T

The type of the items in the thing.
source§

const CAPACITY: usize = 6usize

The number of slots in the thing.
source§

fn as_slice(&self) -> &[T]

Gives a shared slice over the whole thing. Read more
source§

fn as_slice_mut(&mut self) -> &mut [T]

Gives a unique slice over the whole thing. Read more
source§

fn default() -> [T; 6]

Create a default-initialized instance of ourself, similar to the Default trait, but implemented for the same range of sizes as Array.
source§

impl<T> Array for [T; 64]where T: Default,

§

type Item = T

The type of the items in the thing.
source§

const CAPACITY: usize = 64usize

The number of slots in the thing.
source§

fn as_slice(&self) -> &[T]

Gives a shared slice over the whole thing. Read more
source§

fn as_slice_mut(&mut self) -> &mut [T]

Gives a unique slice over the whole thing. Read more
source§

fn default() -> [T; 64]

Create a default-initialized instance of ourself, similar to the Default trait, but implemented for the same range of sizes as Array.
source§

impl<T> Array for [T; 7]where T: Default,

§

type Item = T

The type of the items in the thing.
source§

const CAPACITY: usize = 7usize

The number of slots in the thing.
source§

fn as_slice(&self) -> &[T]

Gives a shared slice over the whole thing. Read more
source§

fn as_slice_mut(&mut self) -> &mut [T]

Gives a unique slice over the whole thing. Read more
source§

fn default() -> [T; 7]

Create a default-initialized instance of ourself, similar to the Default trait, but implemented for the same range of sizes as Array.
source§

impl<T> Array for [T; 8]where T: Default,

§

type Item = T

The type of the items in the thing.
source§

const CAPACITY: usize = 8usize

The number of slots in the thing.
source§

fn as_slice(&self) -> &[T]

Gives a shared slice over the whole thing. Read more
source§

fn as_slice_mut(&mut self) -> &mut [T]

Gives a unique slice over the whole thing. Read more
source§

fn default() -> [T; 8]

Create a default-initialized instance of ourself, similar to the Default trait, but implemented for the same range of sizes as Array.
source§

impl<T> Array for [T; 9]where T: Default,

§

type Item = T

The type of the items in the thing.
source§

const CAPACITY: usize = 9usize

The number of slots in the thing.
source§

fn as_slice(&self) -> &[T]

Gives a shared slice over the whole thing. Read more
source§

fn as_slice_mut(&mut self) -> &mut [T]

Gives a unique slice over the whole thing. Read more
source§

fn default() -> [T; 9]

Create a default-initialized instance of ourself, similar to the Default trait, but implemented for the same range of sizes as Array.
source§

impl<T, const N: usize> Array for [T; N]

§

type Item = T

The type of the array’s elements.
source§

fn size() -> usize

Returns the number of items the array can hold.
source§

impl<T> ArrayLike for [T; 0]

§

type Item = T

Type of the elements being stored.
source§

impl<T> ArrayLike for [T; 1]

§

type Item = T

Type of the elements being stored.
source§

impl<T> ArrayLike for [T; 128]

§

type Item = T

Type of the elements being stored.
source§

impl<T> ArrayLike for [T; 16]

§

type Item = T

Type of the elements being stored.
source§

impl<T> ArrayLike for [T; 192]

§

type Item = T

Type of the elements being stored.
source§

impl<T> ArrayLike for [T; 2]

§

type Item = T

Type of the elements being stored.
source§

impl<T> ArrayLike for [T; 3]

§

type Item = T

Type of the elements being stored.
source§

impl<T> ArrayLike for [T; 32]

§

type Item = T

Type of the elements being stored.
source§

impl<T> ArrayLike for [T; 4]

§

type Item = T

Type of the elements being stored.
source§

impl<T> ArrayLike for [T; 64]

§

type Item = T

Type of the elements being stored.
source§

impl<T> ArrayLike for [T; 8]

§

type Item = T

Type of the elements being stored.
source§

impl<const N: usize, T> AsBytes for [T; N]where T: AsBytes,

source§

fn as_bytes(&self) -> &[u8]

Gets the bytes of this value. Read more
source§

fn write_to(&self, bytes: &mut [u8]) -> Option<()>

Writes a copy of self to bytes. Read more
source§

fn write_to_prefix(&self, bytes: &mut [u8]) -> Option<()>

Writes a copy of self to the prefix of bytes. Read more
source§

fn write_to_suffix(&self, bytes: &mut [u8]) -> Option<()>

Writes a copy of self to the suffix of bytes. Read more
1.0.0 · source§

impl<T, const N: usize> AsMut<[T]> for [T; N]

source§

fn as_mut(&mut self) -> &mut [T]

Converts this type into a mutable reference of the (usually inferred) input type.
1.0.0 · source§

impl<T, const N: usize> AsRef<[T]> for [T; N]

source§

fn as_ref(&self) -> &[T]

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl<T, const N: usize> AsULE for [T; N]where T: AsULE,

§

type ULE = [<T as AsULE>::ULE; N]

The ULE type corresponding to Self. Read more
source§

fn to_unaligned(self) -> <[T; N] as AsULE>::ULE

Converts from Self to Self::ULE. Read more
source§

fn from_unaligned(unaligned: <[T; N] as AsULE>::ULE) -> [T; N]

Converts from Self::ULE to Self. Read more
1.4.0 · source§

impl<T, const N: usize> Borrow<[T]> for [T; N]

source§

fn borrow(&self) -> &[T]

Immutably borrows from an owned value. Read more
1.4.0 · source§

impl<T, const N: usize> BorrowMut<[T]> for [T; N]

source§

fn borrow_mut(&mut self) -> &mut [T]

Mutably borrows from an owned value. Read more
1.58.0 · source§

impl<T, const N: usize> Clone for [T; N]where T: Clone,

source§

fn clone(&self) -> [T; N]

Returns a copy of the value. Read more
source§

fn clone_from(&mut self, other: &[T; N])

Performs copy-assignment from source. Read more
1.0.0 · source§

impl<T, const N: usize> Debug for [T; N]where T: Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
1.4.0 · source§

impl<T> Default for [T; 0]

source§

fn default() -> [T; 0]

Returns the “default value” for a type. Read more
1.4.0 · source§

impl<T> Default for [T; 1]where T: Default,

source§

fn default() -> [T; 1]

Returns the “default value” for a type. Read more
1.4.0 · source§

impl<T> Default for [T; 10]where T: Default,

source§

fn default() -> [T; 10]

Returns the “default value” for a type. Read more
1.4.0 · source§

impl<T> Default for [T; 11]where T: Default,

source§

fn default() -> [T; 11]

Returns the “default value” for a type. Read more
1.4.0 · source§

impl<T> Default for [T; 12]where T: Default,

source§

fn default() -> [T; 12]

Returns the “default value” for a type. Read more
1.4.0 · source§

impl<T> Default for [T; 13]where T: Default,

source§

fn default() -> [T; 13]

Returns the “default value” for a type. Read more
1.4.0 · source§

impl<T> Default for [T; 14]where T: Default,

source§

fn default() -> [T; 14]

Returns the “default value” for a type. Read more
1.4.0 · source§

impl<T> Default for [T; 15]where T: Default,

source§

fn default() -> [T; 15]

Returns the “default value” for a type. Read more
1.4.0 · source§

impl<T> Default for [T; 16]where T: Default,

source§

fn default() -> [T; 16]

Returns the “default value” for a type. Read more
1.4.0 · source§

impl<T> Default for [T; 17]where T: Default,

source§

fn default() -> [T; 17]

Returns the “default value” for a type. Read more
1.4.0 · source§

impl<T> Default for [T; 18]where T: Default,

source§

fn default() -> [T; 18]

Returns the “default value” for a type. Read more
1.4.0 · source§

impl<T> Default for [T; 19]where T: Default,

source§

fn default() -> [T; 19]

Returns the “default value” for a type. Read more
1.4.0 · source§

impl<T> Default for [T; 2]where T: Default,

source§

fn default() -> [T; 2]

Returns the “default value” for a type. Read more
1.4.0 · source§

impl<T> Default for [T; 20]where T: Default,

source§

fn default() -> [T; 20]

Returns the “default value” for a type. Read more
1.4.0 · source§

impl<T> Default for [T; 21]where T: Default,

source§

fn default() -> [T; 21]

Returns the “default value” for a type. Read more
1.4.0 · source§

impl<T> Default for [T; 22]where T: Default,

source§

fn default() -> [T; 22]

Returns the “default value” for a type. Read more
1.4.0 · source§

impl<T> Default for [T; 23]where T: Default,

source§

fn default() -> [T; 23]

Returns the “default value” for a type. Read more
1.4.0 · source§

impl<T> Default for [T; 24]where T: Default,

source§

fn default() -> [T; 24]

Returns the “default value” for a type. Read more
1.4.0 · source§

impl<T> Default for [T; 25]where T: Default,

source§

fn default() -> [T; 25]

Returns the “default value” for a type. Read more
1.4.0 · source§

impl<T> Default for [T; 26]where T: Default,

source§

fn default() -> [T; 26]

Returns the “default value” for a type. Read more
1.4.0 · source§

impl<T> Default for [T; 27]where T: Default,

source§

fn default() -> [T; 27]

Returns the “default value” for a type. Read more
1.4.0 · source§

impl<T> Default for [T; 28]where T: Default,

source§

fn default() -> [T; 28]

Returns the “default value” for a type. Read more
1.4.0 · source§

impl<T> Default for [T; 29]where T: Default,

source§

fn default() -> [T; 29]

Returns the “default value” for a type. Read more
1.4.0 · source§

impl<T> Default for [T; 3]where T: Default,

source§

fn default() -> [T; 3]

Returns the “default value” for a type. Read more
1.4.0 · source§

impl<T> Default for [T; 30]where T: Default,

source§

fn default() -> [T; 30]

Returns the “default value” for a type. Read more
1.4.0 · source§

impl<T> Default for [T; 31]where T: Default,

source§

fn default() -> [T; 31]

Returns the “default value” for a type. Read more
1.4.0 · source§

impl<T> Default for [T; 32]where T: Default,

source§

fn default() -> [T; 32]

Returns the “default value” for a type. Read more
1.4.0 · source§

impl<T> Default for [T; 4]where T: Default,

source§

fn default() -> [T; 4]

Returns the “default value” for a type. Read more
1.4.0 · source§

impl<T> Default for [T; 5]where T: Default,

source§

fn default() -> [T; 5]

Returns the “default value” for a type. Read more
1.4.0 · source§

impl<T> Default for [T; 6]where T: Default,

source§

fn default() -> [T; 6]

Returns the “default value” for a type. Read more
1.4.0 · source§

impl<T> Default for [T; 7]where T: Default,

source§

fn default() -> [T; 7]

Returns the “default value” for a type. Read more
1.4.0 · source§

impl<T> Default for [T; 8]where T: Default,

source§

fn default() -> [T; 8]

Returns the “default value” for a type. Read more
1.4.0 · source§

impl<T> Default for [T; 9]where T: Default,

source§

fn default() -> [T; 9]

Returns the “default value” for a type. Read more
source§

impl<'de, T> Deserialize<'de> for [T; 0]

source§

fn deserialize<D>( deserializer: D ) -> Result<[T; 0], <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl<'de, T> Deserialize<'de> for [T; 1]where T: Deserialize<'de>,

source§

fn deserialize<D>( deserializer: D ) -> Result<[T; 1], <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl<'de, T> Deserialize<'de> for [T; 10]where T: Deserialize<'de>,

source§

fn deserialize<D>( deserializer: D ) -> Result<[T; 10], <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl<'de, T> Deserialize<'de> for [T; 11]where T: Deserialize<'de>,

source§

fn deserialize<D>( deserializer: D ) -> Result<[T; 11], <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl<'de, T> Deserialize<'de> for [T; 12]where T: Deserialize<'de>,

source§

fn deserialize<D>( deserializer: D ) -> Result<[T; 12], <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl<'de, T> Deserialize<'de> for [T; 13]where T: Deserialize<'de>,

source§

fn deserialize<D>( deserializer: D ) -> Result<[T; 13], <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl<'de, T> Deserialize<'de> for [T; 14]where T: Deserialize<'de>,

source§

fn deserialize<D>( deserializer: D ) -> Result<[T; 14], <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl<'de, T> Deserialize<'de> for [T; 15]where T: Deserialize<'de>,

source§

fn deserialize<D>( deserializer: D ) -> Result<[T; 15], <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl<'de, T> Deserialize<'de> for [T; 16]where T: Deserialize<'de>,

source§

fn deserialize<D>( deserializer: D ) -> Result<[T; 16], <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl<'de, T> Deserialize<'de> for [T; 17]where T: Deserialize<'de>,

source§

fn deserialize<D>( deserializer: D ) -> Result<[T; 17], <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl<'de, T> Deserialize<'de> for [T; 18]where T: Deserialize<'de>,

source§

fn deserialize<D>( deserializer: D ) -> Result<[T; 18], <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl<'de, T> Deserialize<'de> for [T; 19]where T: Deserialize<'de>,

source§

fn deserialize<D>( deserializer: D ) -> Result<[T; 19], <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl<'de, T> Deserialize<'de> for [T; 2]where T: Deserialize<'de>,

source§

fn deserialize<D>( deserializer: D ) -> Result<[T; 2], <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl<'de, T> Deserialize<'de> for [T; 20]where T: Deserialize<'de>,

source§

fn deserialize<D>( deserializer: D ) -> Result<[T; 20], <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl<'de, T> Deserialize<'de> for [T; 21]where T: Deserialize<'de>,

source§

fn deserialize<D>( deserializer: D ) -> Result<[T; 21], <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl<'de, T> Deserialize<'de> for [T; 22]where T: Deserialize<'de>,

source§

fn deserialize<D>( deserializer: D ) -> Result<[T; 22], <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl<'de, T> Deserialize<'de> for [T; 23]where T: Deserialize<'de>,

source§

fn deserialize<D>( deserializer: D ) -> Result<[T; 23], <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl<'de, T> Deserialize<'de> for [T; 24]where T: Deserialize<'de>,

source§

fn deserialize<D>( deserializer: D ) -> Result<[T; 24], <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl<'de, T> Deserialize<'de> for [T; 25]where T: Deserialize<'de>,

source§

fn deserialize<D>( deserializer: D ) -> Result<[T; 25], <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl<'de, T> Deserialize<'de> for [T; 26]where T: Deserialize<'de>,

source§

fn deserialize<D>( deserializer: D ) -> Result<[T; 26], <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl<'de, T> Deserialize<'de> for [T; 27]where T: Deserialize<'de>,

source§

fn deserialize<D>( deserializer: D ) -> Result<[T; 27], <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl<'de, T> Deserialize<'de> for [T; 28]where T: Deserialize<'de>,

source§

fn deserialize<D>( deserializer: D ) -> Result<[T; 28], <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl<'de, T> Deserialize<'de> for [T; 29]where T: Deserialize<'de>,

source§

fn deserialize<D>( deserializer: D ) -> Result<[T; 29], <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl<'de, T> Deserialize<'de> for [T; 3]where T: Deserialize<'de>,

source§

fn deserialize<D>( deserializer: D ) -> Result<[T; 3], <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl<'de, T> Deserialize<'de> for [T; 30]where T: Deserialize<'de>,

source§

fn deserialize<D>( deserializer: D ) -> Result<[T; 30], <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl<'de, T> Deserialize<'de> for [T; 31]where T: Deserialize<'de>,

source§

fn deserialize<D>( deserializer: D ) -> Result<[T; 31], <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl<'de, T> Deserialize<'de> for [T; 32]where T: Deserialize<'de>,

source§

fn deserialize<D>( deserializer: D ) -> Result<[T; 32], <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl<'de, T> Deserialize<'de> for [T; 4]where T: Deserialize<'de>,

source§

fn deserialize<D>( deserializer: D ) -> Result<[T; 4], <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl<'de, T> Deserialize<'de> for [T; 5]where T: Deserialize<'de>,

source§

fn deserialize<D>( deserializer: D ) -> Result<[T; 5], <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl<'de, T> Deserialize<'de> for [T; 6]where T: Deserialize<'de>,

source§

fn deserialize<D>( deserializer: D ) -> Result<[T; 6], <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl<'de, T> Deserialize<'de> for [T; 7]where T: Deserialize<'de>,

source§

fn deserialize<D>( deserializer: D ) -> Result<[T; 7], <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl<'de, T> Deserialize<'de> for [T; 8]where T: Deserialize<'de>,

source§

fn deserialize<D>( deserializer: D ) -> Result<[T; 8], <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl<'de, T> Deserialize<'de> for [T; 9]where T: Deserialize<'de>,

source§

fn deserialize<D>( deserializer: D ) -> Result<[T; 9], <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl<T> Fill for [T; 0]where [T]: Fill,

source§

fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>where R: Rng + ?Sized,

Fill self with random data
source§

impl<T> Fill for [T; 1]where [T]: Fill,

source§

fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>where R: Rng + ?Sized,

Fill self with random data
source§

impl<T> Fill for [T; 10]where [T]: Fill,

source§

fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>where R: Rng + ?Sized,

Fill self with random data
source§

impl<T> Fill for [T; 1024]where [T]: Fill,

source§

fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>where R: Rng + ?Sized,

Fill self with random data
source§

impl<T> Fill for [T; 11]where [T]: Fill,

source§

fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>where R: Rng + ?Sized,

Fill self with random data
source§

impl<T> Fill for [T; 12]where [T]: Fill,

source§

fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>where R: Rng + ?Sized,

Fill self with random data
source§

impl<T> Fill for [T; 128]where [T]: Fill,

source§

fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>where R: Rng + ?Sized,

Fill self with random data
source§

impl<T> Fill for [T; 13]where [T]: Fill,

source§

fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>where R: Rng + ?Sized,

Fill self with random data
source§

impl<T> Fill for [T; 14]where [T]: Fill,

source§

fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>where R: Rng + ?Sized,

Fill self with random data
source§

impl<T> Fill for [T; 15]where [T]: Fill,

source§

fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>where R: Rng + ?Sized,

Fill self with random data
source§

impl<T> Fill for [T; 16]where [T]: Fill,

source§

fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>where R: Rng + ?Sized,

Fill self with random data
source§

impl<T> Fill for [T; 17]where [T]: Fill,

source§

fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>where R: Rng + ?Sized,

Fill self with random data
source§

impl<T> Fill for [T; 18]where [T]: Fill,

source§

fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>where R: Rng + ?Sized,

Fill self with random data
source§

impl<T> Fill for [T; 19]where [T]: Fill,

source§

fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>where R: Rng + ?Sized,

Fill self with random data
source§

impl<T> Fill for [T; 2]where [T]: Fill,

source§

fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>where R: Rng + ?Sized,

Fill self with random data
source§

impl<T> Fill for [T; 20]where [T]: Fill,

source§

fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>where R: Rng + ?Sized,

Fill self with random data
source§

impl<T> Fill for [T; 2048]where [T]: Fill,

source§

fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>where R: Rng + ?Sized,

Fill self with random data
source§

impl<T> Fill for [T; 21]where [T]: Fill,

source§

fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>where R: Rng + ?Sized,

Fill self with random data
source§

impl<T> Fill for [T; 22]where [T]: Fill,

source§

fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>where R: Rng + ?Sized,

Fill self with random data
source§

impl<T> Fill for [T; 23]where [T]: Fill,

source§

fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>where R: Rng + ?Sized,

Fill self with random data
source§

impl<T> Fill for [T; 24]where [T]: Fill,

source§

fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>where R: Rng + ?Sized,

Fill self with random data
source§

impl<T> Fill for [T; 25]where [T]: Fill,

source§

fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>where R: Rng + ?Sized,

Fill self with random data
source§

impl<T> Fill for [T; 256]where [T]: Fill,

source§

fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>where R: Rng + ?Sized,

Fill self with random data
source§

impl<T> Fill for [T; 26]where [T]: Fill,

source§

fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>where R: Rng + ?Sized,

Fill self with random data
source§

impl<T> Fill for [T; 27]where [T]: Fill,

source§

fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>where R: Rng + ?Sized,

Fill self with random data
source§

impl<T> Fill for [T; 28]where [T]: Fill,

source§

fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>where R: Rng + ?Sized,

Fill self with random data
source§

impl<T> Fill for [T; 29]where [T]: Fill,

source§

fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>where R: Rng + ?Sized,

Fill self with random data
source§

impl<T> Fill for [T; 3]where [T]: Fill,

source§

fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>where R: Rng + ?Sized,

Fill self with random data
source§

impl<T> Fill for [T; 30]where [T]: Fill,

source§

fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>where R: Rng + ?Sized,

Fill self with random data
source§

impl<T> Fill for [T; 31]where [T]: Fill,

source§

fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>where R: Rng + ?Sized,

Fill self with random data
source§

impl<T> Fill for [T; 32]where [T]: Fill,

source§

fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>where R: Rng + ?Sized,

Fill self with random data
source§

impl<T> Fill for [T; 4]where [T]: Fill,

source§

fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>where R: Rng + ?Sized,

Fill self with random data
source§

impl<T> Fill for [T; 4096]where [T]: Fill,

source§

fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>where R: Rng + ?Sized,

Fill self with random data
source§

impl<T> Fill for [T; 5]where [T]: Fill,

source§

fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>where R: Rng + ?Sized,

Fill self with random data
source§

impl<T> Fill for [T; 512]where [T]: Fill,

source§

fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>where R: Rng + ?Sized,

Fill self with random data
source§

impl<T> Fill for [T; 6]where [T]: Fill,

source§

fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>where R: Rng + ?Sized,

Fill self with random data
source§

impl<T> Fill for [T; 64]where [T]: Fill,

source§

fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>where R: Rng + ?Sized,

Fill self with random data
source§

impl<T> Fill for [T; 7]where [T]: Fill,

source§

fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>where R: Rng + ?Sized,

Fill self with random data
source§

impl<T> Fill for [T; 8]where [T]: Fill,

source§

fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>where R: Rng + ?Sized,

Fill self with random data
source§

impl<T> Fill for [T; 9]where [T]: Fill,

source§

fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>where R: Rng + ?Sized,

Fill self with random data
1.71.0 · source§

impl<T> From<(T,)> for [T; 1]

source§

fn from(tuple: (T,)) -> [T; 1]

Converts to this type from the input type.
1.71.0 · source§

impl<T> From<(T, T)> for [T; 2]

source§

fn from(tuple: (T, T)) -> [T; 2]

Converts to this type from the input type.
1.71.0 · source§

impl<T> From<(T, T, T)> for [T; 3]

source§

fn from(tuple: (T, T, T)) -> [T; 3]

Converts to this type from the input type.
1.71.0 · source§

impl<T> From<(T, T, T, T)> for [T; 4]

source§

fn from(tuple: (T, T, T, T)) -> [T; 4]

Converts to this type from the input type.
1.71.0 · source§

impl<T> From<(T, T, T, T, T)> for [T; 5]

source§

fn from(tuple: (T, T, T, T, T)) -> [T; 5]

Converts to this type from the input type.
1.71.0 · source§

impl<T> From<(T, T, T, T, T, T)> for [T; 6]

source§

fn from(tuple: (T, T, T, T, T, T)) -> [T; 6]

Converts to this type from the input type.
1.71.0 · source§

impl<T> From<(T, T, T, T, T, T, T)> for [T; 7]

source§

fn from(tuple: (T, T, T, T, T, T, T)) -> [T; 7]

Converts to this type from the input type.
1.71.0 · source§

impl<T> From<(T, T, T, T, T, T, T, T)> for [T; 8]

source§

fn from(tuple: (T, T, T, T, T, T, T, T)) -> [T; 8]

Converts to this type from the input type.
1.71.0 · source§

impl<T> From<(T, T, T, T, T, T, T, T, T)> for [T; 9]

source§

fn from(tuple: (T, T, T, T, T, T, T, T, T)) -> [T; 9]

Converts to this type from the input type.
1.71.0 · source§

impl<T> From<(T, T, T, T, T, T, T, T, T, T)> for [T; 10]

source§

fn from(tuple: (T, T, T, T, T, T, T, T, T, T)) -> [T; 10]

Converts to this type from the input type.
1.71.0 · source§

impl<T> From<(T, T, T, T, T, T, T, T, T, T, T)> for [T; 11]

source§

fn from(tuple: (T, T, T, T, T, T, T, T, T, T, T)) -> [T; 11]

Converts to this type from the input type.
1.71.0 · source§

impl<T> From<(T, T, T, T, T, T, T, T, T, T, T, T)> for [T; 12]

source§

fn from(tuple: (T, T, T, T, T, T, T, T, T, T, T, T)) -> [T; 12]

Converts to this type from the input type.
source§

impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>>> for [T; 1024]

source§

fn from( sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>> ) -> [T; 1024]

Converts to this type from the input type.
source§

impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>>> for [T; 512]

source§

fn from( sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>> ) -> [T; 512]

Converts to this type from the input type.
source§

impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B1>, B1>, B0>, B1>, B0>, B0>, B0>>> for [T; 1000]

source§

fn from( sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B1>, B1>, B0>, B1>, B0>, B0>, B0>> ) -> [T; 1000]

Converts to this type from the input type.
source§

impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>>> for [T; 256]

source§

fn from( sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>> ) -> [T; 256]

Converts to this type from the input type.
source§

impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B1>, B0>, B1>, B1>, B0>, B0>>> for [T; 300]

source§

fn from( sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B1>, B0>, B1>, B1>, B0>, B0>> ) -> [T; 300]

Converts to this type from the input type.
source§

impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>, B1>, B0>, B0>, B0>, B0>>> for [T; 400]

source§

fn from( sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>, B1>, B0>, B0>, B0>, B0>> ) -> [T; 400]

Converts to this type from the input type.
source§

impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B1>, B1>, B0>, B1>, B0>, B0>>> for [T; 500]

source§

fn from( sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B1>, B1>, B0>, B1>, B0>, B0>> ) -> [T; 500]

Converts to this type from the input type.
source§

impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>>> for [T; 128]

source§

fn from( sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>> ) -> [T; 128]

Converts to this type from the input type.
source§

impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>, B1>, B0>, B0>, B0>>> for [T; 200]

source§

fn from( sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>, B1>, B0>, B0>, B0>> ) -> [T; 200]

Converts to this type from the input type.
source§

impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>>> for [T; 64]

source§

fn from( sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>> ) -> [T; 64]

Converts to this type from the input type.
source§

impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B1>, B1>, B0>>> for [T; 70]

source§

fn from( sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B1>, B1>, B0>> ) -> [T; 70]

Converts to this type from the input type.
source§

impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B0>, B0>, B0>, B0>>> for [T; 80]

source§

fn from( sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B0>, B0>, B0>, B0>> ) -> [T; 80]

Converts to this type from the input type.
source§

impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B1>, B0>, B1>, B0>>> for [T; 90]

source§

fn from( sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B1>, B0>, B1>, B0>> ) -> [T; 90]

Converts to this type from the input type.
source§

impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>, B1>, B0>, B0>>> for [T; 100]

source§

fn from( sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>, B1>, B0>, B0>> ) -> [T; 100]

Converts to this type from the input type.
source§

impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>> for [T; 32]

source§

fn from( sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>> ) -> [T; 32]

Converts to this type from the input type.
source§

impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B1>>> for [T; 33]

source§

fn from( sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B1>> ) -> [T; 33]

Converts to this type from the input type.
source§

impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B1>, B0>>> for [T; 34]

source§

fn from( sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B1>, B0>> ) -> [T; 34]

Converts to this type from the input type.
source§

impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B1>, B1>>> for [T; 35]

source§

fn from( sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B1>, B1>> ) -> [T; 35]

Converts to this type from the input type.
source§

impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B1>, B0>, B0>>> for [T; 36]

source§

fn from( sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B1>, B0>, B0>> ) -> [T; 36]

Converts to this type from the input type.
source§

impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B1>, B0>, B1>>> for [T; 37]

source§

fn from( sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B1>, B0>, B1>> ) -> [T; 37]

Converts to this type from the input type.
source§

impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B1>, B1>, B0>>> for [T; 38]

source§

fn from( sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B1>, B1>, B0>> ) -> [T; 38]

Converts to this type from the input type.
source§

impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B1>, B1>, B1>>> for [T; 39]

source§

fn from( sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B1>, B1>, B1>> ) -> [T; 39]

Converts to this type from the input type.
source§

impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B0>, B0>, B0>>> for [T; 40]

source§

fn from( sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B0>, B0>, B0>> ) -> [T; 40]

Converts to this type from the input type.
source§

impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B0>, B0>, B1>>> for [T; 41]

source§

fn from( sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B0>, B0>, B1>> ) -> [T; 41]

Converts to this type from the input type.
source§

impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B0>, B1>, B0>>> for [T; 42]

source§

fn from( sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B0>, B1>, B0>> ) -> [T; 42]

Converts to this type from the input type.
source§

impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B0>, B1>, B1>>> for [T; 43]

source§

fn from( sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B0>, B1>, B1>> ) -> [T; 43]

Converts to this type from the input type.
source§

impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B1>, B0>, B0>>> for [T; 44]

source§

fn from( sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B1>, B0>, B0>> ) -> [T; 44]

Converts to this type from the input type.
source§

impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B1>, B0>, B1>>> for [T; 45]

source§

fn from( sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B1>, B0>, B1>> ) -> [T; 45]

Converts to this type from the input type.
source§

impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B1>, B1>, B0>>> for [T; 46]

source§

fn from( sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B1>, B1>, B0>> ) -> [T; 46]

Converts to this type from the input type.
source§

impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B1>, B1>, B1>>> for [T; 47]

source§

fn from( sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B1>, B1>, B1>> ) -> [T; 47]

Converts to this type from the input type.
source§

impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>, B0>, B0>>> for [T; 48]

source§

fn from( sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>, B0>, B0>> ) -> [T; 48]

Converts to this type from the input type.
source§

impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>, B0>, B1>>> for [T; 49]

source§

fn from( sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>, B0>, B1>> ) -> [T; 49]

Converts to this type from the input type.
source§

impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>, B1>, B0>>> for [T; 50]

source§

fn from( sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>, B1>, B0>> ) -> [T; 50]

Converts to this type from the input type.
source§

impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>, B1>, B1>>> for [T; 51]

source§

fn from( sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>, B1>, B1>> ) -> [T; 51]

Converts to this type from the input type.
source§

impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B1>, B0>, B0>>> for [T; 52]

source§

fn from( sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B1>, B0>, B0>> ) -> [T; 52]

Converts to this type from the input type.
source§

impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B1>, B0>, B1>>> for [T; 53]

source§

fn from( sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B1>, B0>, B1>> ) -> [T; 53]

Converts to this type from the input type.
source§

impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B1>, B1>, B0>>> for [T; 54]

source§

fn from( sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B1>, B1>, B0>> ) -> [T; 54]

Converts to this type from the input type.
source§

impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B1>, B1>, B1>>> for [T; 55]

source§

fn from( sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B1>, B1>, B1>> ) -> [T; 55]

Converts to this type from the input type.
source§

impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B0>, B0>, B0>>> for [T; 56]

source§

fn from( sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B0>, B0>, B0>> ) -> [T; 56]

Converts to this type from the input type.
source§

impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B0>, B0>, B1>>> for [T; 57]

source§

fn from( sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B0>, B0>, B1>> ) -> [T; 57]

Converts to this type from the input type.
source§

impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B0>, B1>, B0>>> for [T; 58]

source§

fn from( sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B0>, B1>, B0>> ) -> [T; 58]

Converts to this type from the input type.
source§

impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B0>, B1>, B1>>> for [T; 59]

source§

fn from( sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B0>, B1>, B1>> ) -> [T; 59]

Converts to this type from the input type.
source§

impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B1>, B0>, B0>>> for [T; 60]

source§

fn from( sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B1>, B0>, B0>> ) -> [T; 60]

Converts to this type from the input type.
source§

impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B1>, B0>, B1>>> for [T; 61]

source§

fn from( sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B1>, B0>, B1>> ) -> [T; 61]

Converts to this type from the input type.
source§

impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B1>, B1>, B0>>> for [T; 62]

source§

fn from( sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B1>, B1>, B0>> ) -> [T; 62]

Converts to this type from the input type.
source§

impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B1>, B1>, B1>>> for [T; 63]

source§

fn from( sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B1>, B1>, B1>> ) -> [T; 63]

Converts to this type from the input type.
source§

impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>>> for [T; 16]

source§

fn from( sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>> ) -> [T; 16]

Converts to this type from the input type.
source§

impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B1>>> for [T; 17]

source§

fn from( sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B1>> ) -> [T; 17]

Converts to this type from the input type.
source§

impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B1>, B0>>> for [T; 18]

source§

fn from( sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B1>, B0>> ) -> [T; 18]

Converts to this type from the input type.
source§

impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B1>, B1>>> for [T; 19]

source§

fn from( sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B1>, B1>> ) -> [T; 19]

Converts to this type from the input type.
source§

impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B0>, B0>>> for [T; 20]

source§

fn from( sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B0>, B0>> ) -> [T; 20]

Converts to this type from the input type.
source§

impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B0>, B1>>> for [T; 21]

source§

fn from( sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B0>, B1>> ) -> [T; 21]

Converts to this type from the input type.
source§

impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B1>, B0>>> for [T; 22]

source§

fn from( sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B1>, B0>> ) -> [T; 22]

Converts to this type from the input type.
source§

impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B1>, B1>>> for [T; 23]

source§

fn from( sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B1>, B1>> ) -> [T; 23]

Converts to this type from the input type.
source§

impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>, B0>>> for [T; 24]

source§

fn from( sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>, B0>> ) -> [T; 24]

Converts to this type from the input type.
source§

impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>, B1>>> for [T; 25]

source§

fn from( sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>, B1>> ) -> [T; 25]

Converts to this type from the input type.
source§

impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B1>, B0>>> for [T; 26]

source§

fn from( sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B1>, B0>> ) -> [T; 26]

Converts to this type from the input type.
source§

impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B1>, B1>>> for [T; 27]

source§

fn from( sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B1>, B1>> ) -> [T; 27]

Converts to this type from the input type.
source§

impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B0>, B0>>> for [T; 28]

source§

fn from( sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B0>, B0>> ) -> [T; 28]

Converts to this type from the input type.
source§

impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B0>, B1>>> for [T; 29]

source§

fn from( sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B0>, B1>> ) -> [T; 29]

Converts to this type from the input type.
source§

impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B1>, B0>>> for [T; 30]

source§

fn from( sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B1>, B0>> ) -> [T; 30]

Converts to this type from the input type.
source§

impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B1>, B1>>> for [T; 31]

source§

fn from( sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B1>, B1>> ) -> [T; 31]

Converts to this type from the input type.
source§

impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>>> for [T; 8]

source§

fn from( sel: GenericArray<T, UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>> ) -> [T; 8]

Converts to this type from the input type.
source§

impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B1>>> for [T; 9]

source§

fn from( sel: GenericArray<T, UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B1>> ) -> [T; 9]

Converts to this type from the input type.
source§

impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B0>>> for [T; 10]

source§

fn from( sel: GenericArray<T, UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B0>> ) -> [T; 10]

Converts to this type from the input type.
source§

impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B1>>> for [T; 11]

source§

fn from( sel: GenericArray<T, UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B1>> ) -> [T; 11]

Converts to this type from the input type.
source§

impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>>> for [T; 12]

source§

fn from( sel: GenericArray<T, UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>> ) -> [T; 12]

Converts to this type from the input type.
source§

impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B1>>> for [T; 13]

source§

fn from( sel: GenericArray<T, UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B1>> ) -> [T; 13]

Converts to this type from the input type.
source§

impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B0>>> for [T; 14]

source§

fn from( sel: GenericArray<T, UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B0>> ) -> [T; 14]

Converts to this type from the input type.
source§

impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B1>>> for [T; 15]

source§

fn from( sel: GenericArray<T, UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B1>> ) -> [T; 15]

Converts to this type from the input type.
source§

impl<T> From<GenericArray<T, UInt<UInt<UInt<UTerm, B1>, B0>, B0>>> for [T; 4]

source§

fn from(sel: GenericArray<T, UInt<UInt<UInt<UTerm, B1>, B0>, B0>>) -> [T; 4]

Converts to this type from the input type.
source§

impl<T> From<GenericArray<T, UInt<UInt<UInt<UTerm, B1>, B0>, B1>>> for [T; 5]

source§

fn from(sel: GenericArray<T, UInt<UInt<UInt<UTerm, B1>, B0>, B1>>) -> [T; 5]

Converts to this type from the input type.
source§

impl<T> From<GenericArray<T, UInt<UInt<UInt<UTerm, B1>, B1>, B0>>> for [T; 6]

source§

fn from(sel: GenericArray<T, UInt<UInt<UInt<UTerm, B1>, B1>, B0>>) -> [T; 6]

Converts to this type from the input type.
source§

impl<T> From<GenericArray<T, UInt<UInt<UInt<UTerm, B1>, B1>, B1>>> for [T; 7]

source§

fn from(sel: GenericArray<T, UInt<UInt<UInt<UTerm, B1>, B1>, B1>>) -> [T; 7]

Converts to this type from the input type.
source§

impl<T> From<GenericArray<T, UInt<UInt<UTerm, B1>, B0>>> for [T; 2]

source§

fn from(sel: GenericArray<T, UInt<UInt<UTerm, B1>, B0>>) -> [T; 2]

Converts to this type from the input type.
source§

impl<T> From<GenericArray<T, UInt<UInt<UTerm, B1>, B1>>> for [T; 3]

source§

fn from(sel: GenericArray<T, UInt<UInt<UTerm, B1>, B1>>) -> [T; 3]

Converts to this type from the input type.
source§

impl<T> From<GenericArray<T, UInt<UTerm, B1>>> for [T; 1]

source§

fn from(sel: GenericArray<T, UInt<UTerm, B1>>) -> [T; 1]

Converts to this type from the input type.
source§

impl<T, const N: usize> From<Simd<T, N>> for [T; N]where LaneCount<N>: SupportedLaneCount, T: SimdElement,

source§

fn from(vector: Simd<T, N>) -> [T; N]

Converts to this type from the input type.
source§

impl<const N: usize, T> FromBytes for [T; N]where T: FromBytes,

source§

fn ref_from(bytes: &[u8]) -> Option<&Self>where Self: Sized,

Interprets the given bytes as a &Self without copying. Read more
source§

fn ref_from_prefix(bytes: &[u8]) -> Option<&Self>where Self: Sized,

Interprets the prefix of the given bytes as a &Self without copying. Read more
source§

fn ref_from_suffix(bytes: &[u8]) -> Option<&Self>where Self: Sized,

Interprets the suffix of the given bytes as a &Self without copying. Read more
source§

fn slice_from(bytes: &[u8]) -> Option<&[Self]>where Self: Sized,

Interprets the given bytes as a &[Self] without copying. Read more
source§

fn slice_from_prefix(bytes: &[u8], count: usize) -> Option<(&[Self], &[u8])>where Self: Sized,

Interprets the prefix of the given bytes as a &[Self] with length equal to count without copying. Read more
source§

fn slice_from_suffix(bytes: &[u8], count: usize) -> Option<(&[u8], &[Self])>where Self: Sized,

Interprets the suffix of the given bytes as a &[Self] with length equal to count without copying. Read more
source§

fn read_from(bytes: &[u8]) -> Option<Self>where Self: Sized,

Reads a copy of Self from bytes. Read more
source§

fn read_from_prefix(bytes: &[u8]) -> Option<Self>where Self: Sized,

Reads a copy of Self from the prefix of bytes. Read more
source§

fn read_from_suffix(bytes: &[u8]) -> Option<Self>where Self: Sized,

Reads a copy of Self from the suffix of bytes. Read more
source§

impl<const N: usize, T> FromZeroes for [T; N]where T: FromZeroes,

source§

fn zero(&mut self)

Overwrites self with zeroes. Read more
source§

fn new_zeroed() -> Selfwhere Self: Sized,

Creates an instance of Self from zeroed bytes. Read more
1.0.0 · source§

impl<T, const N: usize> Hash for [T; N]where T: Hash,

The hash of an array is the same as that of the corresponding slice, as required by the Borrow implementation.

use std::hash::BuildHasher;

let b = std::collections::hash_map::RandomState::new();
let a: [u8; 3] = [0xa8, 0x3c, 0x09];
let s: &[u8] = &[0xa8, 0x3c, 0x09];
assert_eq!(b.hash_one(a), b.hash_one(s));
source§

fn hash<H>(&self, state: &mut H)where H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
1.50.0 · source§

impl<T, I, const N: usize> Index<I> for [T; N]where [T]: Index<I>,

§

type Output = <[T] as Index<I>>::Output

The returned type after indexing.
source§

fn index(&self, index: I) -> &<[T; N] as Index<I>>::Output

Performs the indexing (container[index]) operation. Read more
1.50.0 · source§

impl<T, I, const N: usize> IndexMut<I> for [T; N]where [T]: IndexMut<I>,

source§

fn index_mut(&mut self, index: I) -> &mut <[T; N] as Index<I>>::Output

Performs the mutable indexing (container[index]) operation. Read more
1.53.0 · source§

impl<T, const N: usize> IntoIterator for [T; N]

source§

fn into_iter(self) -> <[T; N] as IntoIterator>::IntoIter

Creates a consuming iterator, that is, one that moves each value out of the array (from start to end). The array cannot be used after calling this unless T implements Copy, so the whole array is copied.

Arrays have special behavior when calling .into_iter() prior to the 2021 edition – see the array Editions section for more information.

§

type Item = T

The type of the elements being iterated over.
§

type IntoIter = IntoIter<T, N>

Which kind of iterator are we turning this into?
source§

impl<T, const N: usize> IntoParallelIterator for [T; N]where T: Send,

§

type Item = T

The type of item that the parallel iterator will produce.
§

type Iter = IntoIter<T, N>

The parallel iterator type that will be created.
source§

fn into_par_iter(self) -> <[T; N] as IntoParallelIterator>::Iter

Converts self into a parallel iterator. Read more
1.0.0 · source§

impl<T, const N: usize> Ord for [T; N]where T: Ord,

Implements comparison of arrays lexicographically.

source§

fn cmp(&self, other: &[T; N]) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>,

Restrict a value to a certain interval. Read more
1.0.0 · source§

impl<A, B, const N: usize> PartialEq<&[B]> for [A; N]where A: PartialEq<B>,

source§

fn eq(&self, other: &&[B]) -> bool

This method tests for self and other values to be equal, and is used by ==.
source§

fn ne(&self, other: &&[B]) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
1.0.0 · source§

impl<A, B, const N: usize> PartialEq<&mut [B]> for [A; N]where A: PartialEq<B>,

source§

fn eq(&self, other: &&mut [B]) -> bool

This method tests for self and other values to be equal, and is used by ==.
source§

fn ne(&self, other: &&mut [B]) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
1.0.0 · source§

impl<A, B, const N: usize> PartialEq<[B]> for [A; N]where A: PartialEq<B>,

source§

fn eq(&self, other: &[B]) -> bool

This method tests for self and other values to be equal, and is used by ==.
source§

fn ne(&self, other: &[B]) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
1.0.0 · source§

impl<A, B, const N: usize> PartialEq<[B; N]> for [A; N]where A: PartialEq<B>,

source§

fn eq(&self, other: &[B; N]) -> bool

This method tests for self and other values to be equal, and is used by ==.
source§

fn ne(&self, other: &[B; N]) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
1.0.0 · source§

impl<T, const N: usize> PartialOrd<[T; N]> for [T; N]where T: PartialOrd<T>,

source§

fn partial_cmp(&self, other: &[T; N]) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
source§

fn lt(&self, other: &[T; N]) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
source§

fn le(&self, other: &[T; N]) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
source§

fn ge(&self, other: &[T; N]) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

fn gt(&self, other: &[T; N]) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
source§

impl<T> Peek for [T; 1]where T: Peek,

source§

unsafe fn peek_from(bytes: *const u8, output: *mut [T; 1]) -> *const u8

Deserialize from the buffer pointed to by bytes. Read more
source§

impl<T> Peek for [T; 10]where T: Peek,

source§

unsafe fn peek_from(bytes: *const u8, output: *mut [T; 10]) -> *const u8

Deserialize from the buffer pointed to by bytes. Read more
source§

impl<T> Peek for [T; 11]where T: Peek,

source§

unsafe fn peek_from(bytes: *const u8, output: *mut [T; 11]) -> *const u8

Deserialize from the buffer pointed to by bytes. Read more
source§

impl<T> Peek for [T; 12]where T: Peek,

source§

unsafe fn peek_from(bytes: *const u8, output: *mut [T; 12]) -> *const u8

Deserialize from the buffer pointed to by bytes. Read more
source§

impl<T> Peek for [T; 13]where T: Peek,

source§

unsafe fn peek_from(bytes: *const u8, output: *mut [T; 13]) -> *const u8

Deserialize from the buffer pointed to by bytes. Read more
source§

impl<T> Peek for [T; 14]where T: Peek,

source§

unsafe fn peek_from(bytes: *const u8, output: *mut [T; 14]) -> *const u8

Deserialize from the buffer pointed to by bytes. Read more
source§

impl<T> Peek for [T; 15]where T: Peek,

source§

unsafe fn peek_from(bytes: *const u8, output: *mut [T; 15]) -> *const u8

Deserialize from the buffer pointed to by bytes. Read more
source§

impl<T> Peek for [T; 16]where T: Peek,

source§

unsafe fn peek_from(bytes: *const u8, output: *mut [T; 16]) -> *const u8

Deserialize from the buffer pointed to by bytes. Read more
source§

impl<T> Peek for [T; 17]where T: Peek,

source§

unsafe fn peek_from(bytes: *const u8, output: *mut [T; 17]) -> *const u8

Deserialize from the buffer pointed to by bytes. Read more
source§

impl<T> Peek for [T; 18]where T: Peek,

source§

unsafe fn peek_from(bytes: *const u8, output: *mut [T; 18]) -> *const u8

Deserialize from the buffer pointed to by bytes. Read more
source§

impl<T> Peek for [T; 19]where T: Peek,

source§

unsafe fn peek_from(bytes: *const u8, output: *mut [T; 19]) -> *const u8

Deserialize from the buffer pointed to by bytes. Read more
source§

impl<T> Peek for [T; 2]where T: Peek,

source§

unsafe fn peek_from(bytes: *const u8, output: *mut [T; 2]) -> *const u8

Deserialize from the buffer pointed to by bytes. Read more
source§

impl<T> Peek for [T; 20]where T: Peek,

source§

unsafe fn peek_from(bytes: *const u8, output: *mut [T; 20]) -> *const u8

Deserialize from the buffer pointed to by bytes. Read more
source§

impl<T> Peek for [T; 21]where T: Peek,

source§

unsafe fn peek_from(bytes: *const u8, output: *mut [T; 21]) -> *const u8

Deserialize from the buffer pointed to by bytes. Read more
source§

impl<T> Peek for [T; 22]where T: Peek,

source§

unsafe fn peek_from(bytes: *const u8, output: *mut [T; 22]) -> *const u8

Deserialize from the buffer pointed to by bytes. Read more
source§

impl<T> Peek for [T; 23]where T: Peek,

source§

unsafe fn peek_from(bytes: *const u8, output: *mut [T; 23]) -> *const u8

Deserialize from the buffer pointed to by bytes. Read more
source§

impl<T> Peek for [T; 24]where T: Peek,

source§

unsafe fn peek_from(bytes: *const u8, output: *mut [T; 24]) -> *const u8

Deserialize from the buffer pointed to by bytes. Read more
source§

impl<T> Peek for [T; 25]where T: Peek,

source§

unsafe fn peek_from(bytes: *const u8, output: *mut [T; 25]) -> *const u8

Deserialize from the buffer pointed to by bytes. Read more
source§

impl<T> Peek for [T; 26]where T: Peek,

source§

unsafe fn peek_from(bytes: *const u8, output: *mut [T; 26]) -> *const u8

Deserialize from the buffer pointed to by bytes. Read more
source§

impl<T> Peek for [T; 27]where T: Peek,

source§

unsafe fn peek_from(bytes: *const u8, output: *mut [T; 27]) -> *const u8

Deserialize from the buffer pointed to by bytes. Read more
source§

impl<T> Peek for [T; 28]where T: Peek,

source§

unsafe fn peek_from(bytes: *const u8, output: *mut [T; 28]) -> *const u8

Deserialize from the buffer pointed to by bytes. Read more
source§

impl<T> Peek for [T; 29]where T: Peek,

source§

unsafe fn peek_from(bytes: *const u8, output: *mut [T; 29]) -> *const u8

Deserialize from the buffer pointed to by bytes. Read more
source§

impl<T> Peek for [T; 3]where T: Peek,

source§

unsafe fn peek_from(bytes: *const u8, output: *mut [T; 3]) -> *const u8

Deserialize from the buffer pointed to by bytes. Read more
source§

impl<T> Peek for [T; 30]where T: Peek,

source§

unsafe fn peek_from(bytes: *const u8, output: *mut [T; 30]) -> *const u8

Deserialize from the buffer pointed to by bytes. Read more
source§

impl<T> Peek for [T; 31]where T: Peek,

source§

unsafe fn peek_from(bytes: *const u8, output: *mut [T; 31]) -> *const u8

Deserialize from the buffer pointed to by bytes. Read more
source§

impl<T> Peek for [T; 32]where T: Peek,

source§

unsafe fn peek_from(bytes: *const u8, output: *mut [T; 32]) -> *const u8

Deserialize from the buffer pointed to by bytes. Read more
source§

impl<T> Peek for [T; 4]where T: Peek,

source§

unsafe fn peek_from(bytes: *const u8, output: *mut [T; 4]) -> *const u8

Deserialize from the buffer pointed to by bytes. Read more
source§

impl<T> Peek for [T; 5]where T: Peek,

source§

unsafe fn peek_from(bytes: *const u8, output: *mut [T; 5]) -> *const u8

Deserialize from the buffer pointed to by bytes. Read more
source§

impl<T> Peek for [T; 6]where T: Peek,

source§

unsafe fn peek_from(bytes: *const u8, output: *mut [T; 6]) -> *const u8

Deserialize from the buffer pointed to by bytes. Read more
source§

impl<T> Peek for [T; 7]where T: Peek,

source§

unsafe fn peek_from(bytes: *const u8, output: *mut [T; 7]) -> *const u8

Deserialize from the buffer pointed to by bytes. Read more
source§

impl<T> Peek for [T; 8]where T: Peek,

source§

unsafe fn peek_from(bytes: *const u8, output: *mut [T; 8]) -> *const u8

Deserialize from the buffer pointed to by bytes. Read more
source§

impl<T> Peek for [T; 9]where T: Peek,

source§

unsafe fn peek_from(bytes: *const u8, output: *mut [T; 9]) -> *const u8

Deserialize from the buffer pointed to by bytes. Read more
source§

impl<T> Poke for [T; 1]where T: Poke,

source§

fn max_size() -> usize

Return the maximum number of bytes that the serialized version of Self will occupy. Read more
source§

unsafe fn poke_into(&self, bytes: *mut u8) -> *mut u8

Serialize into the buffer pointed to by bytes. Read more
source§

impl<T> Poke for [T; 10]where T: Poke,

source§

fn max_size() -> usize

Return the maximum number of bytes that the serialized version of Self will occupy. Read more
source§

unsafe fn poke_into(&self, bytes: *mut u8) -> *mut u8

Serialize into the buffer pointed to by bytes. Read more
source§

impl<T> Poke for [T; 11]where T: Poke,

source§

fn max_size() -> usize

Return the maximum number of bytes that the serialized version of Self will occupy. Read more
source§

unsafe fn poke_into(&self, bytes: *mut u8) -> *mut u8

Serialize into the buffer pointed to by bytes. Read more
source§

impl<T> Poke for [T; 12]where T: Poke,

source§

fn max_size() -> usize

Return the maximum number of bytes that the serialized version of Self will occupy. Read more
source§

unsafe fn poke_into(&self, bytes: *mut u8) -> *mut u8

Serialize into the buffer pointed to by bytes. Read more
source§

impl<T> Poke for [T; 13]where T: Poke,

source§

fn max_size() -> usize

Return the maximum number of bytes that the serialized version of Self will occupy. Read more
source§

unsafe fn poke_into(&self, bytes: *mut u8) -> *mut u8

Serialize into the buffer pointed to by bytes. Read more
source§

impl<T> Poke for [T; 14]where T: Poke,

source§

fn max_size() -> usize

Return the maximum number of bytes that the serialized version of Self will occupy. Read more
source§

unsafe fn poke_into(&self, bytes: *mut u8) -> *mut u8

Serialize into the buffer pointed to by bytes. Read more
source§

impl<T> Poke for [T; 15]where T: Poke,

source§

fn max_size() -> usize

Return the maximum number of bytes that the serialized version of Self will occupy. Read more
source§

unsafe fn poke_into(&self, bytes: *mut u8) -> *mut u8

Serialize into the buffer pointed to by bytes. Read more
source§

impl<T> Poke for [T; 16]where T: Poke,

source§

fn max_size() -> usize

Return the maximum number of bytes that the serialized version of Self will occupy. Read more
source§

unsafe fn poke_into(&self, bytes: *mut u8) -> *mut u8

Serialize into the buffer pointed to by bytes. Read more
source§

impl<T> Poke for [T; 17]where T: Poke,

source§

fn max_size() -> usize

Return the maximum number of bytes that the serialized version of Self will occupy. Read more
source§

unsafe fn poke_into(&self, bytes: *mut u8) -> *mut u8

Serialize into the buffer pointed to by bytes. Read more
source§

impl<T> Poke for [T; 18]where T: Poke,

source§

fn max_size() -> usize

Return the maximum number of bytes that the serialized version of Self will occupy. Read more
source§

unsafe fn poke_into(&self, bytes: *mut u8) -> *mut u8

Serialize into the buffer pointed to by bytes. Read more
source§

impl<T> Poke for [T; 19]where T: Poke,

source§

fn max_size() -> usize

Return the maximum number of bytes that the serialized version of Self will occupy. Read more
source§

unsafe fn poke_into(&self, bytes: *mut u8) -> *mut u8

Serialize into the buffer pointed to by bytes. Read more
source§

impl<T> Poke for [T; 2]where T: Poke,

source§

fn max_size() -> usize

Return the maximum number of bytes that the serialized version of Self will occupy. Read more
source§

unsafe fn poke_into(&self, bytes: *mut u8) -> *mut u8

Serialize into the buffer pointed to by bytes. Read more
source§

impl<T> Poke for [T; 20]where T: Poke,

source§

fn max_size() -> usize

Return the maximum number of bytes that the serialized version of Self will occupy. Read more
source§

unsafe fn poke_into(&self, bytes: *mut u8) -> *mut u8

Serialize into the buffer pointed to by bytes. Read more
source§

impl<T> Poke for [T; 21]where T: Poke,

source§

fn max_size() -> usize

Return the maximum number of bytes that the serialized version of Self will occupy. Read more
source§

unsafe fn poke_into(&self, bytes: *mut u8) -> *mut u8

Serialize into the buffer pointed to by bytes. Read more
source§

impl<T> Poke for [T; 22]where T: Poke,

source§

fn max_size() -> usize

Return the maximum number of bytes that the serialized version of Self will occupy. Read more
source§

unsafe fn poke_into(&self, bytes: *mut u8) -> *mut u8

Serialize into the buffer pointed to by bytes. Read more
source§

impl<T> Poke for [T; 23]where T: Poke,

source§

fn max_size() -> usize

Return the maximum number of bytes that the serialized version of Self will occupy. Read more
source§

unsafe fn poke_into(&self, bytes: *mut u8) -> *mut u8

Serialize into the buffer pointed to by bytes. Read more
source§

impl<T> Poke for [T; 24]where T: Poke,

source§

fn max_size() -> usize

Return the maximum number of bytes that the serialized version of Self will occupy. Read more
source§

unsafe fn poke_into(&self, bytes: *mut u8) -> *mut u8

Serialize into the buffer pointed to by bytes. Read more
source§

impl<T> Poke for [T; 25]where T: Poke,

source§

fn max_size() -> usize

Return the maximum number of bytes that the serialized version of Self will occupy. Read more
source§

unsafe fn poke_into(&self, bytes: *mut u8) -> *mut u8

Serialize into the buffer pointed to by bytes. Read more
source§

impl<T> Poke for [T; 26]where T: Poke,

source§

fn max_size() -> usize

Return the maximum number of bytes that the serialized version of Self will occupy. Read more
source§

unsafe fn poke_into(&self, bytes: *mut u8) -> *mut u8

Serialize into the buffer pointed to by bytes. Read more
source§

impl<T> Poke for [T; 27]where T: Poke,

source§

fn max_size() -> usize

Return the maximum number of bytes that the serialized version of Self will occupy. Read more
source§

unsafe fn poke_into(&self, bytes: *mut u8) -> *mut u8

Serialize into the buffer pointed to by bytes. Read more
source§

impl<T> Poke for [T; 28]where T: Poke,

source§

fn max_size() -> usize

Return the maximum number of bytes that the serialized version of Self will occupy. Read more
source§

unsafe fn poke_into(&self, bytes: *mut u8) -> *mut u8

Serialize into the buffer pointed to by bytes. Read more
source§

impl<T> Poke for [T; 29]where T: Poke,

source§

fn max_size() -> usize

Return the maximum number of bytes that the serialized version of Self will occupy. Read more
source§

unsafe fn poke_into(&self, bytes: *mut u8) -> *mut u8

Serialize into the buffer pointed to by bytes. Read more
source§

impl<T> Poke for [T; 3]where T: Poke,

source§

fn max_size() -> usize

Return the maximum number of bytes that the serialized version of Self will occupy. Read more
source§

unsafe fn poke_into(&self, bytes: *mut u8) -> *mut u8

Serialize into the buffer pointed to by bytes. Read more
source§

impl<T> Poke for [T; 30]where T: Poke,

source§

fn max_size() -> usize

Return the maximum number of bytes that the serialized version of Self will occupy. Read more
source§

unsafe fn poke_into(&self, bytes: *mut u8) -> *mut u8

Serialize into the buffer pointed to by bytes. Read more
source§

impl<T> Poke for [T; 31]where T: Poke,

source§

fn max_size() -> usize

Return the maximum number of bytes that the serialized version of Self will occupy. Read more
source§

unsafe fn poke_into(&self, bytes: *mut u8) -> *mut u8

Serialize into the buffer pointed to by bytes. Read more
source§

impl<T> Poke for [T; 32]where T: Poke,

source§

fn max_size() -> usize

Return the maximum number of bytes that the serialized version of Self will occupy. Read more
source§

unsafe fn poke_into(&self, bytes: *mut u8) -> *mut u8

Serialize into the buffer pointed to by bytes. Read more
source§

impl<T> Poke for [T; 4]where T: Poke,

source§

fn max_size() -> usize

Return the maximum number of bytes that the serialized version of Self will occupy. Read more
source§

unsafe fn poke_into(&self, bytes: *mut u8) -> *mut u8

Serialize into the buffer pointed to by bytes. Read more
source§

impl<T> Poke for [T; 5]where T: Poke,

source§

fn max_size() -> usize

Return the maximum number of bytes that the serialized version of Self will occupy. Read more
source§

unsafe fn poke_into(&self, bytes: *mut u8) -> *mut u8

Serialize into the buffer pointed to by bytes. Read more
source§

impl<T> Poke for [T; 6]where T: Poke,

source§

fn max_size() -> usize

Return the maximum number of bytes that the serialized version of Self will occupy. Read more
source§

unsafe fn poke_into(&self, bytes: *mut u8) -> *mut u8

Serialize into the buffer pointed to by bytes. Read more
source§

impl<T> Poke for [T; 7]where T: Poke,

source§

fn max_size() -> usize

Return the maximum number of bytes that the serialized version of Self will occupy. Read more
source§

unsafe fn poke_into(&self, bytes: *mut u8) -> *mut u8

Serialize into the buffer pointed to by bytes. Read more
source§

impl<T> Poke for [T; 8]where T: Poke,

source§

fn max_size() -> usize

Return the maximum number of bytes that the serialized version of Self will occupy. Read more
source§

unsafe fn poke_into(&self, bytes: *mut u8) -> *mut u8

Serialize into the buffer pointed to by bytes. Read more
source§

impl<T> Poke for [T; 9]where T: Poke,

source§

fn max_size() -> usize

Return the maximum number of bytes that the serialized version of Self will occupy. Read more
source§

unsafe fn poke_into(&self, bytes: *mut u8) -> *mut u8

Serialize into the buffer pointed to by bytes. Read more
source§

impl<T> Serialize for [T; 0]

source§

fn serialize<S>( &self, serializer: S ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl<T> Serialize for [T; 1]where T: Serialize,

source§

fn serialize<S>( &self, serializer: S ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl<T> Serialize for [T; 10]where T: Serialize,

source§

fn serialize<S>( &self, serializer: S ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl<T> Serialize for [T; 11]where T: Serialize,

source§

fn serialize<S>( &self, serializer: S ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl<T> Serialize for [T; 12]where T: Serialize,

source§

fn serialize<S>( &self, serializer: S ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl<T> Serialize for [T; 13]where T: Serialize,

source§

fn serialize<S>( &self, serializer: S ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl<T> Serialize for [T; 14]where T: Serialize,

source§

fn serialize<S>( &self, serializer: S ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl<T> Serialize for [T; 15]where T: Serialize,

source§

fn serialize<S>( &self, serializer: S ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl<T> Serialize for [T; 16]where T: Serialize,

source§

fn serialize<S>( &self, serializer: S ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl<T> Serialize for [T; 17]where T: Serialize,

source§

fn serialize<S>( &self, serializer: S ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl<T> Serialize for [T; 18]where T: Serialize,

source§

fn serialize<S>( &self, serializer: S ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl<T> Serialize for [T; 19]where T: Serialize,

source§

fn serialize<S>( &self, serializer: S ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl<T> Serialize for [T; 2]where T: Serialize,

source§

fn serialize<S>( &self, serializer: S ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl<T> Serialize for [T; 20]where T: Serialize,

source§

fn serialize<S>( &self, serializer: S ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl<T> Serialize for [T; 21]where T: Serialize,

source§

fn serialize<S>( &self, serializer: S ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl<T> Serialize for [T; 22]where T: Serialize,

source§

fn serialize<S>( &self, serializer: S ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl<T> Serialize for [T; 23]where T: Serialize,

source§

fn serialize<S>( &self, serializer: S ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl<T> Serialize for [T; 24]where T: Serialize,

source§

fn serialize<S>( &self, serializer: S ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl<T> Serialize for [T; 25]where T: Serialize,

source§

fn serialize<S>( &self, serializer: S ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl<T> Serialize for [T; 26]where T: Serialize,

source§

fn serialize<S>( &self, serializer: S ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl<T> Serialize for [T; 27]where T: Serialize,

source§

fn serialize<S>( &self, serializer: S ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl<T> Serialize for [T; 28]where T: Serialize,

source§

fn serialize<S>( &self, serializer: S ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl<T> Serialize for [T; 29]where T: Serialize,

source§

fn serialize<S>( &self, serializer: S ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl<T> Serialize for [T; 3]where T: Serialize,

source§

fn serialize<S>( &self, serializer: S ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl<T> Serialize for [T; 30]where T: Serialize,

source§

fn serialize<S>( &self, serializer: S ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl<T> Serialize for [T; 31]where T: Serialize,

source§

fn serialize<S>( &self, serializer: S ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl<T> Serialize for [T; 32]where T: Serialize,

source§

fn serialize<S>( &self, serializer: S ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl<T> Serialize for [T; 4]where T: Serialize,

source§

fn serialize<S>( &self, serializer: S ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl<T> Serialize for [T; 5]where T: Serialize,

source§

fn serialize<S>( &self, serializer: S ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl<T> Serialize for [T; 6]where T: Serialize,

source§

fn serialize<S>( &self, serializer: S ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl<T> Serialize for [T; 7]where T: Serialize,

source§

fn serialize<S>( &self, serializer: S ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl<T> Serialize for [T; 8]where T: Serialize,

source§

fn serialize<S>( &self, serializer: S ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl<T> Serialize for [T; 9]where T: Serialize,

source§

fn serialize<S>( &self, serializer: S ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where S: Serializer,

Serialize this value into the given Serde serializer. Read more
1.51.0 · source§

impl<T, const N: usize> SlicePattern for [T; N]

§

type Item = T

🔬This is a nightly-only experimental API. (slice_pattern)
The element type of the slice being matched on.
source§

fn as_slice(&self) -> &[<[T; N] as SlicePattern>::Item]

🔬This is a nightly-only experimental API. (slice_pattern)
Currently, the consumers of SlicePattern need a slice.
source§

impl<T, const COUNT: usize> Traceable for [T; COUNT]where T: Traceable,

source§

unsafe fn trace(&self, tracer: *mut JSTracer)

Trace self.
1.34.0 · source§

impl<T, const N: usize> TryFrom<&[T]> for [T; N]where T: Copy,

Tries to create an array [T; N] by copying from a slice &[T]. Succeeds if slice.len() == N.

let bytes: [u8; 3] = [1, 0, 2];

let bytes_head: [u8; 2] = <[u8; 2]>::try_from(&bytes[0..2]).unwrap();
assert_eq!(1, u16::from_le_bytes(bytes_head));

let bytes_tail: [u8; 2] = bytes[1..3].try_into().unwrap();
assert_eq!(512, u16::from_le_bytes(bytes_tail));
§

type Error = TryFromSliceError

The type returned in the event of a conversion error.
source§

fn try_from(slice: &[T]) -> Result<[T; N], TryFromSliceError>

Performs the conversion.
1.59.0 · source§

impl<T, const N: usize> TryFrom<&mut [T]> for [T; N]where T: Copy,

Tries to create an array [T; N] by copying from a mutable slice &mut [T]. Succeeds if slice.len() == N.

let mut bytes: [u8; 3] = [1, 0, 2];

let bytes_head: [u8; 2] = <[u8; 2]>::try_from(&mut bytes[0..2]).unwrap();
assert_eq!(1, u16::from_le_bytes(bytes_head));

let bytes_tail: [u8; 2] = (&mut bytes[1..3]).try_into().unwrap();
assert_eq!(512, u16::from_le_bytes(bytes_tail));
§

type Error = TryFromSliceError

The type returned in the event of a conversion error.
source§

fn try_from(slice: &mut [T]) -> Result<[T; N], TryFromSliceError>

Performs the conversion.
source§

impl<T, const N: usize> TryFrom<ThinVec<T>> for [T; N]

source§

fn try_from(vec: ThinVec<T>) -> Result<[T; N], ThinVec<T>>

Gets the entire contents of the ThinVec<T> as an array, if its size exactly matches that of the requested array.

Examples
use thin_vec::{ThinVec, thin_vec};
use std::convert::TryInto;

assert_eq!(thin_vec![1, 2, 3].try_into(), Ok([1, 2, 3]));
assert_eq!(<ThinVec<i32>>::new().try_into(), Ok([]));

If the length doesn’t match, the input comes back in Err:

use thin_vec::{ThinVec, thin_vec};
use std::convert::TryInto;

let r: Result<[i32; 4], _> = (0..10).collect::<ThinVec<_>>().try_into();
assert_eq!(r, Err(thin_vec![0, 1, 2, 3, 4, 5, 6, 7, 8, 9]));

If you’re fine with just getting a prefix of the ThinVec<T>, you can call .truncate(N) first.

use thin_vec::{ThinVec, thin_vec};
use std::convert::TryInto;

let mut v = ThinVec::from("hello world");
v.sort();
v.truncate(2);
let [a, b]: [_; 2] = v.try_into().unwrap();
assert_eq!(a, b' ');
assert_eq!(b, b'd');
§

type Error = ThinVec<T>

The type returned in the event of a conversion error.
1.48.0 · source§

impl<T, A, const N: usize> TryFrom<Vec<T, A>> for [T; N]where A: Allocator,

source§

fn try_from(vec: Vec<T, A>) -> Result<[T; N], Vec<T, A>>

Gets the entire contents of the Vec<T> as an array, if its size exactly matches that of the requested array.

Examples
assert_eq!(vec![1, 2, 3].try_into(), Ok([1, 2, 3]));
assert_eq!(<Vec<i32>>::new().try_into(), Ok([]));

If the length doesn’t match, the input comes back in Err:

let r: Result<[i32; 4], _> = (0..10).collect::<Vec<_>>().try_into();
assert_eq!(r, Err(vec![0, 1, 2, 3, 4, 5, 6, 7, 8, 9]));

If you’re fine with just getting a prefix of the Vec<T>, you can call .truncate(N) first.

let mut v = String::from("hello world").into_bytes();
v.sort();
v.truncate(2);
let [a, b]: [_; 2] = v.try_into().unwrap();
assert_eq!(a, b' ');
assert_eq!(b, b'd');
§

type Error = Vec<T, A>

The type returned in the event of a conversion error.
source§

impl<T, A, const N: usize> TryFrom<Vec<T, A>> for [T; N]where A: Allocator,

source§

fn try_from(vec: Vec<T, A>) -> Result<[T; N], Vec<T, A>>

Gets the entire contents of the Vec<T> as an array, if its size exactly matches that of the requested array.

Examples
assert_eq!(vec![1, 2, 3].try_into(), Ok([1, 2, 3]));
assert_eq!(<Vec<i32>>::new().try_into(), Ok([]));

If the length doesn’t match, the input comes back in Err:

let r: Result<[i32; 4], _> = (0..10).collect::<Vec<_>>().try_into();
assert_eq!(r, Err(vec![0, 1, 2, 3, 4, 5, 6, 7, 8, 9]));

If you’re fine with just getting a prefix of the Vec<T>, you can call .truncate(N) first.

let mut v = String::from("hello world").into_bytes();
v.sort();
v.truncate(2);
let [a, b]: [_; 2] = v.try_into().unwrap();
assert_eq!(a, b' ');
assert_eq!(b, b'd');
§

type Error = Vec<T, A>

The type returned in the event of a conversion error.
source§

impl<T, const N: usize> ULE for [T; N]where T: ULE,

source§

fn validate_byte_slice(bytes: &[u8]) -> Result<(), ZeroVecError>

Validates a byte slice, &[u8]. Read more
source§

fn parse_byte_slice(bytes: &[u8]) -> Result<&[Self], ZeroVecError>

Parses a byte slice, &[u8], and return it as &[Self] with the same lifetime. Read more
source§

unsafe fn from_byte_slice_unchecked(bytes: &[u8]) -> &[Self]

Takes a byte slice, &[u8], and return it as &[Self] with the same lifetime, assuming that this byte slice has previously been run through Self::parse_byte_slice() with success. Read more
source§

fn as_byte_slice(slice: &[Self]) -> &[u8]

Given &[Self], returns a &[u8] with the same lifetime. Read more
source§

impl<'a, T, const N: usize> Yokeable<'a> for [T; N]where T: Yokeable<'a>,

§

type Output = [<T as Yokeable<'a>>::Output; N]

This type MUST be Self with the 'static replaced with 'a, i.e. Self<'a>
source§

fn transform(&'a self) -> &'a <[T; N] as Yokeable<'a>>::Output

This method must cast self between &'a Self<'static> and &'a Self<'a>. Read more
source§

fn transform_owned(self) -> <[T; N] as Yokeable<'a>>::Output

This method must cast self between Self<'static> and Self<'a>. Read more
source§

unsafe fn make(from: <[T; N] as Yokeable<'a>>::Output) -> [T; N]

This method can be used to cast away Self<'a>’s lifetime. Read more
source§

fn transform_mut<F>(&'a mut self, f: F)where F: 'static + for<'b> FnOnce(&'b mut <[T; N] as Yokeable<'a>>::Output),

This method must cast self between &'a mut Self<'static> and &'a mut Self<'a>, and pass it to f. Read more
source§

impl<'a, C, T> ZeroFrom<'a, [C; 1]> for [T; 1]where T: ZeroFrom<'a, C>,

source§

fn zero_from(this: &'a [C; 1]) -> [T; 1]

Clone the other C into a struct that may retain references into C.
source§

impl<'a, C, T> ZeroFrom<'a, [C; 10]> for [T; 10]where T: ZeroFrom<'a, C>,

source§

fn zero_from(this: &'a [C; 10]) -> [T; 10]

Clone the other C into a struct that may retain references into C.
source§

impl<'a, C, T> ZeroFrom<'a, [C; 11]> for [T; 11]where T: ZeroFrom<'a, C>,

source§

fn zero_from(this: &'a [C; 11]) -> [T; 11]

Clone the other C into a struct that may retain references into C.
source§

impl<'a, C, T> ZeroFrom<'a, [C; 12]> for [T; 12]where T: ZeroFrom<'a, C>,

source§

fn zero_from(this: &'a [C; 12]) -> [T; 12]

Clone the other C into a struct that may retain references into C.
source§

impl<'a, C, T> ZeroFrom<'a, [C; 13]> for [T; 13]where T: ZeroFrom<'a, C>,

source§

fn zero_from(this: &'a [C; 13]) -> [T; 13]

Clone the other C into a struct that may retain references into C.
source§

impl<'a, C, T> ZeroFrom<'a, [C; 14]> for [T; 14]where T: ZeroFrom<'a, C>,

source§

fn zero_from(this: &'a [C; 14]) -> [T; 14]

Clone the other C into a struct that may retain references into C.
source§

impl<'a, C, T> ZeroFrom<'a, [C; 15]> for [T; 15]where T: ZeroFrom<'a, C>,

source§

fn zero_from(this: &'a [C; 15]) -> [T; 15]

Clone the other C into a struct that may retain references into C.
source§

impl<'a, C, T> ZeroFrom<'a, [C; 16]> for [T; 16]where T: ZeroFrom<'a, C>,

source§

fn zero_from(this: &'a [C; 16]) -> [T; 16]

Clone the other C into a struct that may retain references into C.
source§

impl<'a, C, T> ZeroFrom<'a, [C; 2]> for [T; 2]where T: ZeroFrom<'a, C>,

source§

fn zero_from(this: &'a [C; 2]) -> [T; 2]

Clone the other C into a struct that may retain references into C.
source§

impl<'a, C, T> ZeroFrom<'a, [C; 3]> for [T; 3]where T: ZeroFrom<'a, C>,

source§

fn zero_from(this: &'a [C; 3]) -> [T; 3]

Clone the other C into a struct that may retain references into C.
source§

impl<'a, C, T> ZeroFrom<'a, [C; 4]> for [T; 4]where T: ZeroFrom<'a, C>,

source§

fn zero_from(this: &'a [C; 4]) -> [T; 4]

Clone the other C into a struct that may retain references into C.
source§

impl<'a, C, T> ZeroFrom<'a, [C; 5]> for [T; 5]where T: ZeroFrom<'a, C>,

source§

fn zero_from(this: &'a [C; 5]) -> [T; 5]

Clone the other C into a struct that may retain references into C.
source§

impl<'a, C, T> ZeroFrom<'a, [C; 6]> for [T; 6]where T: ZeroFrom<'a, C>,

source§

fn zero_from(this: &'a [C; 6]) -> [T; 6]

Clone the other C into a struct that may retain references into C.
source§

impl<'a, C, T> ZeroFrom<'a, [C; 7]> for [T; 7]where T: ZeroFrom<'a, C>,

source§

fn zero_from(this: &'a [C; 7]) -> [T; 7]

Clone the other C into a struct that may retain references into C.
source§

impl<'a, C, T> ZeroFrom<'a, [C; 8]> for [T; 8]where T: ZeroFrom<'a, C>,

source§

fn zero_from(this: &'a [C; 8]) -> [T; 8]

Clone the other C into a struct that may retain references into C.
source§

impl<'a, C, T> ZeroFrom<'a, [C; 9]> for [T; 9]where T: ZeroFrom<'a, C>,

source§

fn zero_from(this: &'a [C; 9]) -> [T; 9]

Clone the other C into a struct that may retain references into C.
source§

impl<'a, T, const N: usize> ZeroMapKV<'a> for [T; N]where T: AsULE + 'static,

§

type Container = ZeroVec<'a, [T; N]>

The container that can be used with this type: ZeroVec or VarZeroVec.
§

type Slice = ZeroSlice<[T; N]>

§

type GetType = [<T as AsULE>::ULE; N]

The type produced by Container::get() Read more
§

type OwnedType = [T; N]

The type produced by Container::replace() and Container::remove(), also used during deserialization. If Self is human readable serialized, deserializing to Self::OwnedType should produce the same value once passed through Self::owned_as_self() Read more
source§

impl<T> Zeroable for [T; 0]where T: Zeroable,

source§

fn zeroed() -> Self

source§

impl<T> Zeroable for [T; 1]where T: Zeroable,

source§

fn zeroed() -> Self

source§

impl<T> Zeroable for [T; 10]where T: Zeroable,

source§

fn zeroed() -> Self

source§

impl<T> Zeroable for [T; 1024]where T: Zeroable,

source§

fn zeroed() -> Self

source§

impl<T> Zeroable for [T; 11]where T: Zeroable,

source§

fn zeroed() -> Self

source§

impl<T> Zeroable for [T; 12]where T: Zeroable,

source§

fn zeroed() -> Self

source§

impl<T> Zeroable for [T; 128]where T: Zeroable,

source§

fn zeroed() -> Self

source§

impl<T> Zeroable for [T; 13]where T: Zeroable,

source§

fn zeroed() -> Self

source§

impl<T> Zeroable for [T; 14]where T: Zeroable,

source§

fn zeroed() -> Self

source§

impl<T> Zeroable for [T; 15]where T: Zeroable,

source§

fn zeroed() -> Self

source§

impl<T> Zeroable for [T; 16]where T: Zeroable,

source§

fn zeroed() -> Self

source§

impl<T> Zeroable for [T; 17]where T: Zeroable,

source§

fn zeroed() -> Self

source§

impl<T> Zeroable for [T; 18]where T: Zeroable,

source§

fn zeroed() -> Self

source§

impl<T> Zeroable for [T; 19]where T: Zeroable,

source§

fn zeroed() -> Self

source§

impl<T> Zeroable for [T; 2]where T: Zeroable,

source§

fn zeroed() -> Self

source§

impl<T> Zeroable for [T; 20]where T: Zeroable,

source§

fn zeroed() -> Self

source§

impl<T> Zeroable for [T; 2048]where T: Zeroable,

source§

fn zeroed() -> Self

source§

impl<T> Zeroable for [T; 21]where T: Zeroable,

source§

fn zeroed() -> Self

source§

impl<T> Zeroable for [T; 22]where T: Zeroable,

source§

fn zeroed() -> Self

source§

impl<T> Zeroable for [T; 23]where T: Zeroable,

source§

fn zeroed() -> Self

source§

impl<T> Zeroable for [T; 24]where T: Zeroable,

source§

fn zeroed() -> Self

source§

impl<T> Zeroable for [T; 25]where T: Zeroable,

source§

fn zeroed() -> Self

source§

impl<T> Zeroable for [T; 256]where T: Zeroable,

source§

fn zeroed() -> Self

source§

impl<T> Zeroable for [T; 26]where T: Zeroable,

source§

fn zeroed() -> Self

source§

impl<T> Zeroable for [T; 27]where T: Zeroable,

source§

fn zeroed() -> Self

source§

impl<T> Zeroable for [T; 28]where T: Zeroable,

source§

fn zeroed() -> Self

source§

impl<T> Zeroable for [T; 29]where T: Zeroable,

source§

fn zeroed() -> Self

source§

impl<T> Zeroable for [T; 3]where T: Zeroable,

source§

fn zeroed() -> Self

source§

impl<T> Zeroable for [T; 30]where T: Zeroable,

source§

fn zeroed() -> Self

source§

impl<T> Zeroable for [T; 31]where T: Zeroable,

source§

fn zeroed() -> Self

source§

impl<T> Zeroable for [T; 32]where T: Zeroable,

source§

fn zeroed() -> Self

source§

impl<T> Zeroable for [T; 4]where T: Zeroable,

source§

fn zeroed() -> Self

source§

impl<T> Zeroable for [T; 4096]where T: Zeroable,

source§

fn zeroed() -> Self

source§

impl<T> Zeroable for [T; 48]where T: Zeroable,

source§

fn zeroed() -> Self

source§

impl<T> Zeroable for [T; 5]where T: Zeroable,

source§

fn zeroed() -> Self

source§

impl<T> Zeroable for [T; 512]where T: Zeroable,

source§

fn zeroed() -> Self

source§

impl<T> Zeroable for [T; 6]where T: Zeroable,

source§

fn zeroed() -> Self

source§

impl<T> Zeroable for [T; 64]where T: Zeroable,

source§

fn zeroed() -> Self

source§

impl<T> Zeroable for [T; 7]where T: Zeroable,

source§

fn zeroed() -> Self

source§

impl<T> Zeroable for [T; 8]where T: Zeroable,

source§

fn zeroed() -> Self

source§

impl<T> Zeroable for [T; 9]where T: Zeroable,

source§

fn zeroed() -> Self

source§

impl<T> Zeroable for [T; 96]where T: Zeroable,

source§

fn zeroed() -> Self

source§

impl<T, const N: usize> ConstParamTy for [T; N]where T: ConstParamTy,

1.58.0 · source§

impl<T, const N: usize> Copy for [T; N]where T: Copy,

1.0.0 · source§

impl<T, const N: usize> Eq for [T; N]where T: Eq,

source§

impl<T, const N: usize> EqULE for [T; N]where T: EqULE,

source§

impl<T> Pod for [T; 0]where T: Pod,

source§

impl<T> Pod for [T; 1]where T: Pod,

source§

impl<T> Pod for [T; 10]where T: Pod,

source§

impl<T> Pod for [T; 1024]where T: Pod,

source§

impl<T> Pod for [T; 11]where T: Pod,

source§

impl<T> Pod for [T; 12]where T: Pod,

source§

impl<T> Pod for [T; 128]where T: Pod,

source§

impl<T> Pod for [T; 13]where T: Pod,

source§

impl<T> Pod for [T; 14]where T: Pod,

source§

impl<T> Pod for [T; 15]where T: Pod,

source§

impl<T> Pod for [T; 16]where T: Pod,

source§

impl<T> Pod for [T; 17]where T: Pod,

source§

impl<T> Pod for [T; 18]where T: Pod,

source§

impl<T> Pod for [T; 19]where T: Pod,

source§

impl<T> Pod for [T; 2]where T: Pod,

source§

impl<T> Pod for [T; 20]where T: Pod,

source§

impl<T> Pod for [T; 2048]where T: Pod,

source§

impl<T> Pod for [T; 21]where T: Pod,

source§

impl<T> Pod for [T; 22]where T: Pod,

source§

impl<T> Pod for [T; 23]where T: Pod,

source§

impl<T> Pod for [T; 24]where T: Pod,

source§

impl<T> Pod for [T; 25]where T: Pod,

source§

impl<T> Pod for [T; 256]where T: Pod,

source§

impl<T> Pod for [T; 26]where T: Pod,

source§

impl<T> Pod for [T; 27]where T: Pod,

source§

impl<T> Pod for [T; 28]where T: Pod,

source§

impl<T> Pod for [T; 29]where T: Pod,

source§

impl<T> Pod for [T; 3]where T: Pod,

source§

impl<T> Pod for [T; 30]where T: Pod,

source§

impl<T> Pod for [T; 31]where T: Pod,

source§

impl<T> Pod for [T; 32]where T: Pod,

source§

impl<T> Pod for [T; 4]where T: Pod,

source§

impl<T> Pod for [T; 4096]where T: Pod,

source§

impl<T> Pod for [T; 48]where T: Pod,

source§

impl<T> Pod for [T; 5]where T: Pod,

source§

impl<T> Pod for [T; 512]where T: Pod,

source§

impl<T> Pod for [T; 6]where T: Pod,

source§

impl<T> Pod for [T; 64]where T: Pod,

source§

impl<T> Pod for [T; 7]where T: Pod,

source§

impl<T> Pod for [T; 8]where T: Pod,

source§

impl<T> Pod for [T; 9]where T: Pod,

source§

impl<T> Pod for [T; 96]where T: Pod,

source§

impl<T, const N: usize> StructuralEq for [T; N]

source§

impl<T, const N: usize> StructuralPartialEq for [T; N]

source§

impl<const N: usize, T> Unaligned for [T; N]where T: Unaligned,