no_vec

Trait Stick

Source
pub trait Stick<T> {
    type Target;

    // Required method
    fn stick(self, item: T) -> Self::Target;
}
Expand description

This trait helps to join array with a new element.

Required Associated Types§

Required Methods§

Source

fn stick(self, item: T) -> Self::Target

Appends an item to an array:

let arr: [u16; 2] = [123u16].stick(456);

Implementations on Foreign Types§

Source§

impl<T> Stick<T> for [T; 1]

Source§

type Target = [T; 2]

Source§

fn stick(self, item: T) -> Self::Target

Source§

impl<T> Stick<T> for [T; 2]

Source§

type Target = [T; 3]

Source§

fn stick(self, item: T) -> Self::Target

Source§

impl<T> Stick<T> for [T; 3]

Source§

type Target = [T; 4]

Source§

fn stick(self, item: T) -> Self::Target

Source§

impl<T> Stick<T> for [T; 4]

Source§

type Target = [T; 5]

Source§

fn stick(self, item: T) -> Self::Target

Source§

impl<T> Stick<T> for [T; 5]

Source§

type Target = [T; 6]

Source§

fn stick(self, item: T) -> Self::Target

Source§

impl<T> Stick<T> for [T; 6]

Source§

type Target = [T; 7]

Source§

fn stick(self, item: T) -> Self::Target

Source§

impl<T> Stick<T> for [T; 7]

Source§

type Target = [T; 8]

Source§

fn stick(self, item: T) -> Self::Target

Source§

impl<T> Stick<T> for [T; 8]

Source§

type Target = [T; 9]

Source§

fn stick(self, item: T) -> Self::Target

Source§

impl<T> Stick<T> for [T; 9]

Source§

type Target = [T; 10]

Source§

fn stick(self, item: T) -> Self::Target

Source§

impl<T> Stick<T> for [T; 10]

Source§

type Target = [T; 11]

Source§

fn stick(self, item: T) -> Self::Target

Source§

impl<T> Stick<T> for [T; 11]

Source§

type Target = [T; 12]

Source§

fn stick(self, item: T) -> Self::Target

Source§

impl<T> Stick<T> for [T; 12]

Source§

type Target = [T; 13]

Source§

fn stick(self, item: T) -> Self::Target

Source§

impl<T> Stick<T> for [T; 13]

Source§

type Target = [T; 14]

Source§

fn stick(self, item: T) -> Self::Target

Source§

impl<T> Stick<T> for [T; 14]

Source§

type Target = [T; 15]

Source§

fn stick(self, item: T) -> Self::Target

Source§

impl<T> Stick<T> for [T; 15]

Source§

type Target = [T; 16]

Source§

fn stick(self, item: T) -> Self::Target

Source§

impl<T> Stick<T> for [T; 16]

Source§

type Target = [T; 17]

Source§

fn stick(self, item: T) -> Self::Target

Source§

impl<T> Stick<T> for [T; 17]

Source§

type Target = [T; 18]

Source§

fn stick(self, item: T) -> Self::Target

Source§

impl<T> Stick<T> for [T; 18]

Source§

type Target = [T; 19]

Source§

fn stick(self, item: T) -> Self::Target

Source§

impl<T> Stick<T> for [T; 19]

Source§

type Target = [T; 20]

Source§

fn stick(self, item: T) -> Self::Target

Source§

impl<T> Stick<T> for [T; 20]

Source§

type Target = [T; 21]

Source§

fn stick(self, item: T) -> Self::Target

Source§

impl<T> Stick<T> for [T; 21]

Source§

type Target = [T; 22]

Source§

fn stick(self, item: T) -> Self::Target

Source§

impl<T> Stick<T> for [T; 22]

Source§

type Target = [T; 23]

Source§

fn stick(self, item: T) -> Self::Target

Source§

impl<T> Stick<T> for [T; 23]

Source§

type Target = [T; 24]

Source§

fn stick(self, item: T) -> Self::Target

Source§

impl<T> Stick<T> for [T; 24]

Source§

type Target = [T; 25]

Source§

fn stick(self, item: T) -> Self::Target

Source§

impl<T> Stick<T> for [T; 25]

Source§

type Target = [T; 26]

Source§

fn stick(self, item: T) -> Self::Target

Source§

impl<T> Stick<T> for [T; 26]

Source§

type Target = [T; 27]

Source§

fn stick(self, item: T) -> Self::Target

Source§

impl<T> Stick<T> for [T; 27]

Source§

type Target = [T; 28]

Source§

fn stick(self, item: T) -> Self::Target

Source§

impl<T> Stick<T> for [T; 28]

Source§

type Target = [T; 29]

Source§

fn stick(self, item: T) -> Self::Target

Source§

impl<T> Stick<T> for [T; 29]

Source§

type Target = [T; 30]

Source§

fn stick(self, item: T) -> Self::Target

Source§

impl<T> Stick<T> for [T; 30]

Source§

type Target = [T; 31]

Source§

fn stick(self, item: T) -> Self::Target

Source§

impl<T> Stick<T> for [T; 31]

Source§

type Target = [T; 32]

Source§

fn stick(self, item: T) -> Self::Target

Implementors§