Skip to main content

Collection

Trait Collection 

Source
pub trait Collection {
    type Scalar;
}
Expand description

A trait for collections of scalars.

This trait defines an associated type Scalar, representing the type of elements in the collection.

Required Associated Types§

Source

type Scalar

The scalar type contained in the collection.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl Collection for ()

Source§

impl<E, const N: usize> Collection for [E; N]

Source§

impl<E> Collection for (E, E)

Source§

impl<E> Collection for (E, E, E)

Source§

impl<E> Collection for (E, E, E, E)

Source§

impl<E> Collection for (E,)

Source§

impl<E> Collection for [E]

Source§

impl<T> Collection for &T
where T: Collection,

Implementation of Collection for references to collections.

Source§

impl<T> Collection for &mut T
where T: Collection,

Implementation of Collection for mutable references to collections.

Implementors§