no_vec

Trait Concrete

Source
pub trait Concrete<T>: Sized {
    // Required method
    fn concrete(self) -> Result<T, Self>;
}
Expand description

Helps to covert Vec<T> to [T].

Required Methods§

Source

fn concrete(self) -> Result<T, Self>

Converts from a vector to an array:

let arr: Result<[u16; 2], Vec<u16>> = vec![123u16, 456].concrete();

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<T> Concrete<[T; 1]> for Vec<T>

Source§

fn concrete(self) -> Result<[T; 1], Self>

Source§

impl<T> Concrete<[T; 2]> for Vec<T>

Source§

fn concrete(self) -> Result<[T; 2], Self>

Source§

impl<T> Concrete<[T; 3]> for Vec<T>

Source§

fn concrete(self) -> Result<[T; 3], Self>

Source§

impl<T> Concrete<[T; 4]> for Vec<T>

Source§

fn concrete(self) -> Result<[T; 4], Self>

Source§

impl<T> Concrete<[T; 5]> for Vec<T>

Source§

fn concrete(self) -> Result<[T; 5], Self>

Source§

impl<T> Concrete<[T; 6]> for Vec<T>

Source§

fn concrete(self) -> Result<[T; 6], Self>

Source§

impl<T> Concrete<[T; 7]> for Vec<T>

Source§

fn concrete(self) -> Result<[T; 7], Self>

Source§

impl<T> Concrete<[T; 8]> for Vec<T>

Source§

fn concrete(self) -> Result<[T; 8], Self>

Source§

impl<T> Concrete<[T; 9]> for Vec<T>

Source§

fn concrete(self) -> Result<[T; 9], Self>

Source§

impl<T> Concrete<[T; 10]> for Vec<T>

Source§

fn concrete(self) -> Result<[T; 10], Self>

Source§

impl<T> Concrete<[T; 11]> for Vec<T>

Source§

fn concrete(self) -> Result<[T; 11], Self>

Source§

impl<T> Concrete<[T; 12]> for Vec<T>

Source§

fn concrete(self) -> Result<[T; 12], Self>

Source§

impl<T> Concrete<[T; 13]> for Vec<T>

Source§

fn concrete(self) -> Result<[T; 13], Self>

Source§

impl<T> Concrete<[T; 14]> for Vec<T>

Source§

fn concrete(self) -> Result<[T; 14], Self>

Source§

impl<T> Concrete<[T; 15]> for Vec<T>

Source§

fn concrete(self) -> Result<[T; 15], Self>

Source§

impl<T> Concrete<[T; 16]> for Vec<T>

Source§

fn concrete(self) -> Result<[T; 16], Self>

Source§

impl<T> Concrete<[T; 17]> for Vec<T>

Source§

fn concrete(self) -> Result<[T; 17], Self>

Source§

impl<T> Concrete<[T; 18]> for Vec<T>

Source§

fn concrete(self) -> Result<[T; 18], Self>

Source§

impl<T> Concrete<[T; 19]> for Vec<T>

Source§

fn concrete(self) -> Result<[T; 19], Self>

Source§

impl<T> Concrete<[T; 20]> for Vec<T>

Source§

fn concrete(self) -> Result<[T; 20], Self>

Source§

impl<T> Concrete<[T; 21]> for Vec<T>

Source§

fn concrete(self) -> Result<[T; 21], Self>

Source§

impl<T> Concrete<[T; 22]> for Vec<T>

Source§

fn concrete(self) -> Result<[T; 22], Self>

Source§

impl<T> Concrete<[T; 23]> for Vec<T>

Source§

fn concrete(self) -> Result<[T; 23], Self>

Source§

impl<T> Concrete<[T; 24]> for Vec<T>

Source§

fn concrete(self) -> Result<[T; 24], Self>

Source§

impl<T> Concrete<[T; 25]> for Vec<T>

Source§

fn concrete(self) -> Result<[T; 25], Self>

Source§

impl<T> Concrete<[T; 26]> for Vec<T>

Source§

fn concrete(self) -> Result<[T; 26], Self>

Source§

impl<T> Concrete<[T; 27]> for Vec<T>

Source§

fn concrete(self) -> Result<[T; 27], Self>

Source§

impl<T> Concrete<[T; 28]> for Vec<T>

Source§

fn concrete(self) -> Result<[T; 28], Self>

Source§

impl<T> Concrete<[T; 29]> for Vec<T>

Source§

fn concrete(self) -> Result<[T; 29], Self>

Source§

impl<T> Concrete<[T; 30]> for Vec<T>

Source§

fn concrete(self) -> Result<[T; 30], Self>

Source§

impl<T> Concrete<[T; 31]> for Vec<T>

Source§

fn concrete(self) -> Result<[T; 31], Self>

Implementors§